Update Tile.java

This commit is contained in:
Anuken 2019-10-26 08:49:52 -04:00 committed by GitHub
parent a628134a89
commit df0d81db7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,6 +93,10 @@ public class Tile implements Position, TargetTrait{
Call.onTileConfig(player, this, value);
}
public void configureAny(int value){
Call.onTileConfig(null, this, value);
}
@SuppressWarnings("unchecked")
public <T extends TileEntity> T entity(){
return (T)entity;
@ -446,4 +450,4 @@ public class Tile implements Position, TargetTrait{
public String toString(){
return floor.name + ":" + block.name + ":" + overlay + "[" + x + "," + y + "] " + "entity=" + (entity == null ? "null" : (entity.getClass())) + ":" + getTeam();
}
}
}