Class TileEntityMobSpawner

java.lang.Object
net.minecraft.src.TileEntity
net.minecraft.src.TileEntityMobSpawner

public class TileEntityMobSpawner extends TileEntity
  • Constructor Details

    • TileEntityMobSpawner

      public TileEntityMobSpawner()
  • Method Details

    • readFromNBT

      public void readFromNBT(NBTTagCompound par1NBTTagCompound)
      Reads a tile entity from NBT.
      Overrides:
      readFromNBT in class TileEntity
    • writeToNBT

      public void writeToNBT(NBTTagCompound par1NBTTagCompound)
      Writes a tile entity to NBT.
      Overrides:
      writeToNBT in class TileEntity
    • updateEntity

      public void updateEntity()
      Allows the entity to update its state. Overridden in most subclasses, e.g. the mob spawner uses this to count ticks and creates a new spawn inside its implementation.
      Overrides:
      updateEntity in class TileEntity
    • getDescriptionPacket

      public Packet getDescriptionPacket()
      Overriden in a sign to provide the text.
      Overrides:
      getDescriptionPacket in class TileEntity
    • receiveClientEvent

      public boolean receiveClientEvent(int par1, int par2)
      Called when a client event is received with the event number and argument, see World.sendClientEvent
      Overrides:
      receiveClientEvent in class TileEntity
    • getSpawnerLogic

      public MobSpawnerBaseLogic getSpawnerLogic()
      Returns the spawner logic associated with this spawner
    • isDecayed

      public boolean isDecayed()