public class TileColossalChest
extends org.cyclops.cyclopscore.tileentity.InventoryTileEntityBase
implements org.cyclops.cyclopscore.tileentity.CyclopsTileEntity.ITickingTile
| Modifier and Type | Field and Description |
|---|---|
static org.cyclops.cyclopscore.block.multi.CubeDetector |
detector
The multiblock structure detector for this furnace.
|
float |
lidAngle
The current angle of the lid.
|
float |
prevLidAngle
The previous angle of the lid.
|
| Constructor and Description |
|---|
TileColossalChest() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterface(net.minecraft.util.math.Vec3i blockPos) |
protected void |
addSlotlessItemHandlerCapability() |
protected int |
calculateInventorySize() |
protected boolean |
canAccess(int slot,
net.minecraft.util.EnumFacing side) |
boolean |
canInteractWith(net.minecraft.entity.player.EntityPlayer entityPlayer) |
void |
closeInventory(net.minecraft.entity.player.EntityPlayer entityPlayer) |
protected org.cyclops.cyclopscore.inventory.IndexedInventory |
constructInventory() |
protected org.cyclops.cyclopscore.inventory.IndexedInventory |
constructInventoryDebug() |
static void |
detectStructure(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos location,
net.minecraft.util.math.Vec3i size,
boolean valid,
net.minecraft.util.math.BlockPos originCorner)
Callback for when a structure has been detected for a spirit furnace block.
|
java.util.List<net.minecraft.util.math.Vec3i> |
getInterfaceLocations() |
org.cyclops.cyclopscore.inventory.INBTInventory |
getInventory() |
PropertyMaterial.Type |
getMaterial() |
static net.minecraft.util.math.Vec3i |
getMaxSize() |
java.lang.String |
getName() |
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
net.minecraft.util.math.Vec3d |
getRenderOffset() |
net.minecraft.util.math.Vec3i |
getSize() |
int |
getSizeSingular() |
int[] |
getSlotsForFace(net.minecraft.util.EnumFacing side) |
net.minecraft.network.play.server.SPacketUpdateTileEntity |
getUpdatePacket() |
net.minecraft.nbt.NBTTagCompound |
getUpdateTag() |
boolean |
hasCustomName() |
boolean |
isStructureComplete() |
void |
openInventory(net.minecraft.entity.player.EntityPlayer entityPlayer) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound tag) |
boolean |
receiveClientEvent(int i,
int j) |
void |
setCenter(net.minecraft.util.math.Vec3d center) |
void |
setCustomName(java.lang.String name) |
void |
setMaterial(PropertyMaterial.Type material) |
void |
setSize(net.minecraft.util.math.Vec3i size)
Set the size.
|
void |
updateTileEntity() |
addInventoryStateCapability, canExtractItem, canInsertItem, clear, decrStackSize, getDisplayName, getField, getFieldCount, getInventoryHash, getInventoryStackLimit, getSizeInventory, getStackInSlot, isEmpty, isItemValidForSlot, isSendUpdateOnInventoryChanged, isUsableByPlayer, markDirty, onInventoryChanged, removeStackFromSlot, setField, setInventorySlotContents, setSendUpdateOnInventoryChanged, updateInventoryHash, writeToNBTaddCapabilityInternal, addCapabilitySided, afterSendUpdate, beforeSendUpdate, destroy, getBlock, getCapabilities, getCapability, getNBTTagCompound, getRotation, getUpdateBackoffTicks, hasCapability, isRotatable, isTicking, onDataPacket, onLoad, onSendUpdate, onUpdateReceived, readGeneratedFieldsFromNBT, sendImmediateUpdate, sendUpdate, setRotatable, setRotation, shouldRefresh, writeGeneratedFieldsToNBTaddInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getTileData, getWorld, handleUpdateTag, hasFastRenderer, hasWorld, invalidate, isInvalid, mirror, onChunkUnload, onlyOpsCanSetNbt, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRenderInPass, updateContainingBlockInfo, validatepublic static org.cyclops.cyclopscore.block.multi.CubeDetector detector
public float prevLidAngle
public float lidAngle
protected void addSlotlessItemHandlerCapability()
public net.minecraft.util.math.Vec3i getSize()
public void setSize(net.minecraft.util.math.Vec3i size)
size - the size to setpublic void setMaterial(PropertyMaterial.Type material)
public PropertyMaterial.Type getMaterial()
public int getSizeSingular()
protected org.cyclops.cyclopscore.inventory.IndexedInventory constructInventory()
protected org.cyclops.cyclopscore.inventory.IndexedInventory constructInventoryDebug()
public net.minecraft.nbt.NBTTagCompound getUpdateTag()
getUpdateTag in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntitypublic void readFromNBT(net.minecraft.nbt.NBTTagCompound tag)
readFromNBT in class org.cyclops.cyclopscore.tileentity.InventoryTileEntityBasepublic net.minecraft.network.play.server.SPacketUpdateTileEntity getUpdatePacket()
getUpdatePacket in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntityprotected int calculateInventorySize()
public void updateTileEntity()
updateTileEntity in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntitypublic boolean receiveClientEvent(int i,
int j)
receiveClientEvent in class net.minecraft.tileentity.TileEntitypublic void openInventory(net.minecraft.entity.player.EntityPlayer entityPlayer)
openInventory in interface net.minecraft.inventory.IInventoryopenInventory in class org.cyclops.cyclopscore.tileentity.InventoryTileEntityBasepublic void closeInventory(net.minecraft.entity.player.EntityPlayer entityPlayer)
closeInventory in interface net.minecraft.inventory.IInventorycloseInventory in class org.cyclops.cyclopscore.tileentity.InventoryTileEntityBasepublic org.cyclops.cyclopscore.inventory.INBTInventory getInventory()
getInventory in class org.cyclops.cyclopscore.tileentity.InventoryTileEntityBaseprotected boolean canAccess(int slot,
net.minecraft.util.EnumFacing side)
canAccess in class org.cyclops.cyclopscore.tileentity.InventoryTileEntityBasepublic boolean canInteractWith(net.minecraft.entity.player.EntityPlayer entityPlayer)
canInteractWith in class org.cyclops.cyclopscore.tileentity.InventoryTileEntityBasepublic net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in class net.minecraft.tileentity.TileEntitypublic void setCenter(net.minecraft.util.math.Vec3d center)
public net.minecraft.util.math.Vec3d getRenderOffset()
public static void detectStructure(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos location,
net.minecraft.util.math.Vec3i size,
boolean valid,
net.minecraft.util.math.BlockPos originCorner)
world - The world.location - The location of one block of the structure.size - The size of the structure.valid - If the structure is being validated(/created), otherwise invalidated.originCorner - The origin cornerpublic int[] getSlotsForFace(net.minecraft.util.EnumFacing side)
getSlotsForFace in interface net.minecraft.inventory.ISidedInventorypublic boolean isStructureComplete()
public static net.minecraft.util.math.Vec3i getMaxSize()
public boolean hasCustomName()
hasCustomName in interface net.minecraft.world.IWorldNameablehasCustomName in class org.cyclops.cyclopscore.tileentity.InventoryTileEntityBasepublic void setCustomName(java.lang.String name)
public java.lang.String getName()
getName in interface net.minecraft.world.IWorldNameablegetName in class org.cyclops.cyclopscore.tileentity.InventoryTileEntityBasepublic void addInterface(net.minecraft.util.math.Vec3i blockPos)
public java.util.List<net.minecraft.util.math.Vec3i> getInterfaceLocations()