public class TileEntity
extends java.lang.Object
| Constructor and Description |
|---|
TileEntity(IWorld world,
int x,
int y) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesSave() |
void |
dropInventory(IInventory inventory) |
void |
fromBuf(io.netty.buffer.ByteBuf buf) |
protected int |
getSyncInterval() |
void |
load(DataSet set) |
protected boolean |
needsSync() |
protected void |
onSync() |
void |
save(DataSet set) |
protected void |
sendToClients() |
boolean |
shouldRemove() |
void |
toBuf(io.netty.buffer.ByteBuf buf) |
void |
update(IGameInstance game) |
public final IWorld world
public final int x
public final int y
public TileEntity(IWorld world, int x, int y)
public void update(IGameInstance game)
public boolean shouldRemove()
public void save(DataSet set)
public void load(DataSet set)
public void toBuf(io.netty.buffer.ByteBuf buf)
throws java.lang.Exception
java.lang.Exceptionpublic void fromBuf(io.netty.buffer.ByteBuf buf)
throws java.lang.Exception
java.lang.Exceptionprotected boolean needsSync()
protected void onSync()
protected int getSyncInterval()
protected void sendToClients()
public boolean doesSave()
public void dropInventory(IInventory inventory)