Class TileEntity

java.lang.Object
de.ellpeck.rockbottom.api.tile.entity.TileEntity

public abstract class TileEntity extends Object
  • Field Details

    • world

      public final IWorld world
    • x

      public final int x
    • y

      public final int y
    • layer

      public final TileLayer layer
  • Constructor Details

    • TileEntity

      public TileEntity(IWorld world, int x, int y, TileLayer layer)
  • Method Details

    • update

      public void update(IGameInstance game)
    • shouldRemove

      public boolean shouldRemove()
    • save

      public void save(DataSet set, boolean forSync)
    • load

      public void load(DataSet set, boolean forSync)
    • needsSync

      protected boolean needsSync()
    • onSync

      protected void onSync()
    • getSyncInterval

      protected int getSyncInterval()
    • sendToClients

      public void sendToClients()
    • doesSave

      public boolean doesSave()
    • dropInventory

      public void dropInventory(IInventory inventory)
    • getTileInventory

      public IFilteredInventory getTileInventory()
    • shouldMakeChunkPersist

      public boolean shouldMakeChunkPersist(IChunk chunk)
    • doesTick

      public boolean doesTick()