public class TileEntityMobSpawner extends TileEntity
| Modifier and Type | Field and Description |
|---|---|
int |
delay
The stored delay before a new spawn.
|
double |
yaw |
double |
yaw2 |
blockMetadata, blockType, INFINITE_EXTENT_AABB, worldObj, xCoord, yCoord, zCoord| Constructor and Description |
|---|
TileEntityMobSpawner() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
anyPlayerInRange()
Returns true if there is a player in range (using World.getClosestPlayer)
|
Packet |
getDescriptionPacket()
Overriden in a sign to provide the text.
|
Entity |
getMobEntity() |
String |
getMobID() |
void |
readFromNBT(NBTTagCompound par1NBTTagCompound)
Reads a tile entity from NBT.
|
void |
receiveClientEvent(int par1,
int par2)
Called when a client event is received with the event number and argument, see World.sendClientEvent
|
void |
setMobID(String par1Str) |
void |
updateEntity()
Allows the entity to update its state.
|
void |
writeNBTTagsTo(Entity par1Entity) |
void |
writeToNBT(NBTTagCompound par1NBTTagCompound)
Writes a tile entity to NBT.
|
addMapping, canUpdate, createAndLoadEntity, func_70309_m, func_82115_m, func_85027_a, getBlockMetadata, getBlockType, getDistanceFrom, getRenderBoundingBox, getWorldObj, invalidate, isInvalid, onChunkUnload, onDataPacket, onInventoryChanged, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validatepublic int delay
public double yaw
public double yaw2
public TileEntityMobSpawner()
public boolean anyPlayerInRange()
public void updateEntity()
updateEntity in class TileEntitypublic void writeNBTTagsTo(Entity par1Entity)
public void readFromNBT(NBTTagCompound par1NBTTagCompound)
readFromNBT in class TileEntitypublic void writeToNBT(NBTTagCompound par1NBTTagCompound)
writeToNBT in class TileEntitypublic Entity getMobEntity()
public Packet getDescriptionPacket()
getDescriptionPacket in class TileEntitypublic void receiveClientEvent(int par1, int par2)
receiveClientEvent in class TileEntity