Colored floor tile

This commit is contained in:
Anuken
2025-07-12 18:16:26 -04:00
parent 0939076b4d
commit e53201347f
8 changed files with 74 additions and 11 deletions

View File

@@ -311,6 +311,10 @@ public class Tile implements Position, QuadTreeObject, Displayable{
if(!world.isGenerating() && prev != type){
Events.fire(floorChange.set(this, prev, type));
}
if(this.floor != prev){
this.floor.floorChanged(this);
}
}
public boolean isEditorTile(){
@@ -564,6 +568,10 @@ public class Tile implements Position, QuadTreeObject, Displayable{
null : null;
}
public boolean shouldSaveData(){
return floor.saveData || overlay.saveData || block.saveData;
}
public int staticDarkness(){
return block.solid && block.fillsTile && !block.synthetic() ? data : 0;
}