public class TileBoxOfEternalClosure
extends org.cyclops.cyclopscore.tileentity.CyclopsTileEntity
implements org.cyclops.cyclopscore.tileentity.CyclopsTileEntity.ITickingTile
| Modifier and Type | Field and Description |
|---|---|
int |
innerRotation
Inner rotation of a beam.
|
static java.lang.String |
NBTKEY_PLAYERID
The name of the NBT tag that will hold the player id.
|
static java.lang.String |
NBTKEY_PLAYERNAME
The name of the NBT tag that will hold the player name.
|
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() |
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() |
addCapabilityInternal, addCapabilitySided, afterSendUpdate, beforeSendUpdate, canInteractWith, destroy, getBlock, getCapabilities, getCapability, getDescriptionPacket, getNBTTagCompound, getRotation, getUpdateBackoffTicks, hasCapability, isRotatable, isTicking, onDataPacket, onLoad, onUpdateReceived, readFromNBT, readGeneratedFieldsFromNBT, sendImmediateUpdate, sendUpdate, setRotatable, setRotation, shouldRefresh, writeGeneratedFieldsToNBT, writeToNBTaddInfoToCrashReport, addMapping, canRenderBreaking, createAndLoadEntity, deserializeNBT, func_183000_F, getBlockMetadata, getBlockType, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getWorld, hasFastRenderer, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, receiveClientEvent, restrictNBTCopy, serializeNBT, setPos, setWorldObj, shouldRenderInPass, updateContainingBlockInfo, validatepublic static final java.lang.String NBTKEY_SPIRIT
public static final java.lang.String NBTKEY_PLAYERID
public static final java.lang.String NBTKEY_PLAYERNAME
public static final float START_LID_ANGLE
public int innerRotation
public void updateTileEntity()
updateTileEntity in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntitypublic 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()
onSendUpdate in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntity