Method renaming for consistency

This commit is contained in:
Anuken
2020-09-28 18:32:39 -04:00
parent 6a45a965c0
commit a5b1239c2b
6 changed files with 6 additions and 6 deletions

View File

@@ -112,7 +112,7 @@ public class EditorTile extends Tile{
Block block = block();
if(block.hasEntity()){
if(block.hasBuilding()){
build = entityprov.get().init(this, team, false, rotation);
build.cons = new ConsumeModule(build);
if(block.hasItems) build.items = new ItemModule();

View File

@@ -257,7 +257,7 @@ public abstract class SaveVersion extends SaveFileReader{
if(hadEntity){
if(isCenter){ //only read entity for center blocks
if(block.hasEntity()){
if(block.hasBuilding()){
try{
readChunk(stream, true, in -> {
byte revision = in.readByte();

View File

@@ -61,7 +61,7 @@ public abstract class LegacySaveVersion extends SaveVersion{
tile.setBlock(block);
}
if(block.hasEntity()){
if(block.hasBuilding()){
try{
readChunk(stream, true, in -> {
byte version = in.readByte();

View File

@@ -499,7 +499,7 @@ public class Block extends UnlockableContent{
return variantRegions;
}
public boolean hasEntity(){
public boolean hasBuilding(){
return destructible || update;
}

View File

@@ -26,7 +26,7 @@ public class CachedTile extends Tile{
Block block = block();
if(block.hasEntity()){
if(block.hasBuilding()){
Building n = entityprov.get();
n.cons(new ConsumeModule(build));
n.tile(this);

View File

@@ -508,7 +508,7 @@ public class Tile implements Position, QuadTreeObject, Displayable{
}
}
if(block.hasEntity()){
if(block.hasBuilding()){
build = entityprov.get().init(this, team, block.update && !state.isEditor(), rotation);
}
}