public class TileBoxOfEternalClosure extends EvilCraftTileEntity
| Modifier and Type | Field and Description |
|---|---|
int |
innerRotation
Inner rotation of a beam.
|
static java.lang.String |
NBTKEY_SPIRIT
The name of the NBT tag that will hold spirit entity data.
|
static float |
START_LID_ANGLE
The lid angle for when this box is open.
|
| Constructor and Description |
|---|
TileBoxOfEternalClosure()
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearSpiritInstance() |
static net.minecraft.entity.EntityLivingBase |
getEntityFromNBT(net.minecraft.world.World world,
net.minecraft.nbt.NBTTagCompound tag)
Get the entity from a tag.
|
float |
getLidAngle() |
float |
getPreviousLidAngle() |
net.minecraft.util.AxisAlignedBB |
getRenderBoundingBox() |
net.minecraft.entity.EntityLivingBase |
getSpiritInstance()
Get the spirit contained inside this box, could be null.
|
VengeanceSpirit |
getTargetSpirit()
Get the target spirit.
|
protected void |
onSendUpdate()
Called when an update will is sent.
|
void |
releaseSpirit()
Release the inner spirit into the world.
|
protected void |
setSpiritInstance(net.minecraft.entity.EntityLivingBase spiritInstance) |
protected void |
setTargetSpirit(VengeanceSpirit targetSpirit) |
protected void |
updateLight() |
void |
updateTileEntity()
Override this method instead of
EvilCraftTileEntity.updateEntity(). |
afterSendUpdate, beforeSendUpdate, canInteractWith, destroy, getBlock, getDescriptionPacket, getNBTTagCompound, getRotation, getUpdateBackoffTicks, isRotatable, isTileValid, onDataPacket, onLoad, onUpdateReceived, readFromNBT, sendImmediateUpdate, sendUpdate, setRotatable, setRotation, updateEntity, writeToNBTaddMapping, canUpdate, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getWorldObj, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validatepublic static final java.lang.String NBTKEY_SPIRIT
public static final float START_LID_ANGLE
public int innerRotation
public void updateTileEntity()
EvilCraftTileEntityEvilCraftTileEntity.updateEntity().
This method is called each tick.updateTileEntity in class EvilCraftTileEntitypublic void releaseSpirit()
public static net.minecraft.entity.EntityLivingBase getEntityFromNBT(net.minecraft.world.World world,
net.minecraft.nbt.NBTTagCompound tag)
world - The world the entity should live in.tag - The tag holding the entity data.protected void setSpiritInstance(net.minecraft.entity.EntityLivingBase spiritInstance)
protected void updateLight()
protected void clearSpiritInstance()
public net.minecraft.entity.EntityLivingBase getSpiritInstance()
public float getLidAngle()
public float getPreviousLidAngle()
public VengeanceSpirit getTargetSpirit()
protected void setTargetSpirit(VengeanceSpirit targetSpirit)
public net.minecraft.util.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in class net.minecraft.tileentity.TileEntityprotected void onSendUpdate()
EvilCraftTileEntityonSendUpdate in class EvilCraftTileEntity