mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-11 07:39:39 +07:00
Update Tile.java
This commit is contained in:
parent
a628134a89
commit
df0d81db7c
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user