Package net.minecraft.src
Class TileEntityMobSpawner
java.lang.Object
net.minecraft.src.TileEntity
net.minecraft.src.TileEntityMobSpawner
-
Field Summary
Fields inherited from class net.minecraft.src.TileEntity
blockMetadata, blockType, tileEntityInvalid, worldObj, xCoord, yCoord, zCoord -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOverriden in a sign to provide the text.Returns the spawner logic associated with this spawnerbooleanvoidreadFromNBT(NBTTagCompound par1NBTTagCompound) Reads a tile entity from NBT.booleanreceiveClientEvent(int par1, int par2) Called when a client event is received with the event number and argument, see World.sendClientEventvoidAllows the entity to update its state.voidwriteToNBT(NBTTagCompound par1NBTTagCompound) Writes a tile entity to NBT.Methods inherited from class net.minecraft.src.TileEntity
addMapping, createAndLoadEntity, func_85027_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getWorldObj, hasWorldObj, invalidate, isInvalid, onInventoryChanged, setWorldObj, updateContainingBlockInfo, validate
-
Constructor Details
-
TileEntityMobSpawner
public TileEntityMobSpawner()
-
-
Method Details
-
readFromNBT
Reads a tile entity from NBT.- Overrides:
readFromNBTin classTileEntity
-
writeToNBT
Writes a tile entity to NBT.- Overrides:
writeToNBTin classTileEntity
-
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:
updateEntityin classTileEntity
-
getDescriptionPacket
Overriden in a sign to provide the text.- Overrides:
getDescriptionPacketin classTileEntity
-
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:
receiveClientEventin classTileEntity
-
getSpawnerLogic
Returns the spawner logic associated with this spawner -
isDecayed
public boolean isDecayed()
-