public abstract class TileEntity
extends java.lang.Object
| Constructor | Description |
|---|---|
TileEntity(IWorld world,
int x,
int y,
TileLayer layer) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
doesSave() |
|
abstract boolean |
doesTick() |
|
void |
dropInventory(IInventory inventory) |
|
FilteredInventory |
getInventory() |
Deprecated.
Use
getTileInventory() instead |
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 |
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()
@Deprecated public FilteredInventory getInventory()
getTileInventory() insteadpublic abstract boolean doesTick()