public 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() |
void |
dropInventory(IInventory inventory) |
protected int |
getSyncInterval() |
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)
protected int getSyncInterval()
protected boolean needsSync()
public void sendToClients()
protected void onSync()
public boolean shouldRemove()
public void save(DataSet set, boolean forSync)
public void load(DataSet set, boolean forSync)
public boolean doesSave()
public void dropInventory(IInventory inventory)