public abstract class TileEntity
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
TileLayer |
layer |
IWorld |
world |
int |
x |
int |
y |
| Constructor and Description |
|---|
TileEntity(IWorld world,
int x,
int y,
TileLayer layer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesSave() |
boolean |
doesTick() |
void |
dropInventory(IInventory inventory) |
protected int |
getSyncInterval() |
IFilteredInventory |
getTileInventory() |
void |
load(DataSet set,
boolean forSync) |
protected boolean |
needsSync() |
protected void |
onSync() |
void |
save(DataSet set,
boolean forSync) |
void |
sendToClients() |
boolean |
shouldMakeChunkPersist(IChunk chunk) |
boolean |
shouldRemove() |
void |
update(IGameInstance game) |
public final IWorld world
public final int x
public final int y
public final TileLayer layer
public void update(IGameInstance game)
public boolean shouldRemove()
public void save(DataSet set, boolean forSync)
public void load(DataSet set, boolean forSync)
protected boolean needsSync()
protected void onSync()
protected int getSyncInterval()
public void sendToClients()
public boolean doesSave()
public void dropInventory(IInventory inventory)
public IFilteredInventory getTileInventory()
public boolean shouldMakeChunkPersist(IChunk chunk)
public boolean doesTick()