canWithdraw() + changes to displayable() (#6902)

* `shouldDiplay()` + `canWithdraw()`

* Better implementation of `displayable()`
This commit is contained in:
MEEPofFaith
2022-06-08 06:17:30 -07:00
committed by GitHub
parent 968651d9ed
commit 5cc314672f
4 changed files with 11 additions and 6 deletions

View File

@@ -613,6 +613,10 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
Fx.unitDrop.at(unit);
}
public boolean canWithdraw(){
return true;
}
public boolean canUnload(){
return block.unloadable;
}
@@ -1342,11 +1346,6 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
public ItemModule flowItems(){
return items;
}
public boolean displayable(){
return true;
}
@Override
public void display(Table table){
//display the block stuff