Better API for saving block configs

This commit is contained in:
Anuken
2020-05-03 11:32:46 -04:00
parent 8eeb668945
commit 5c00ced1e3
18 changed files with 61 additions and 87 deletions

View File

@@ -95,15 +95,6 @@ public class Tile implements Position, QuadTreeObject{
return -1;
}
/** Configure a tile with the current, local player. */
public void configure(Object value){
if(entity != null) Call.onTileConfig(player, entity, value);
}
public void configureAny(Object value){
if(entity != null) Call.onTileConfig(null, entity, value);
}
@SuppressWarnings("unchecked")
public <T extends TileEntity> T ent(){
return (T)entity;