public class TileBloodChest extends TickingTankInventoryTileEntity<TileBloodChest>
| Modifier and Type | Field and Description |
|---|---|
static net.minecraftforge.fluids.Fluid |
ACCEPTED_FLUID
The fluid that is accepted in the tank.
|
float |
lidAngle
The current angle of the lid.
|
static int |
LIQUID_PER_SLOT
The capacity of the tank.
|
float |
prevLidAngle
The previous angle of the lid.
|
static int |
SLOT_CONTAINER
The id of the fluid container slot.
|
static int |
SLOTS
The total amount of slots.
|
static int |
SLOTS_CHEST
The amount of slots in the chest.
|
static java.lang.String |
TANKNAME
The name of the tank, used for NBT storage.
|
static int |
TICKS_PER_LIQUID
The amount of ticks per mB the tank can accept per tick.
|
sendUpdateOnTankChanged, tankSizeinventory, slotSides| Constructor and Description |
|---|
TileBloodChest()
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRenderBreaking() |
void |
closeInventory(net.minecraft.entity.player.EntityPlayer entityPlayer) |
int |
getNewState()
Get the new (numerical) state for this tile entity.
|
net.minecraft.util.EnumFacing |
getRotation() |
boolean |
isItemValidForSlot(int slot,
net.minecraft.item.ItemStack itemStack) |
boolean |
isUsableByPlayer(net.minecraft.entity.player.EntityPlayer entityPlayer) |
protected org.cyclops.cyclopscore.fluid.SingleUseTank |
newTank(java.lang.String tankName,
int tankSize) |
void |
onStateChanged()
What needs to happen when the (numerical) state is changed.
|
void |
openInventory(net.minecraft.entity.player.EntityPlayer entityPlayer) |
boolean |
receiveClientEvent(int i,
int j) |
void |
updateTileEntity() |
addTicker, getCurrentState, getTickers, readFromNBT, writeToNBTdrain, drain, fill, getTank, isSendUpdateOnTankChanged, isUpdateInventoryHashOnTankContentsChanged, onSendUpdate, onTankChanged, setSendUpdateOnTankChangedaddSlotsToSide, getInventory, getSlotsForFaceaddInventoryStateCapability, canAccess, canExtractItem, canInsertItem, canInteractWith, clear, decrStackSize, getDisplayName, getField, getFieldCount, getInventoryHash, getInventoryStackLimit, getName, getSizeInventory, getStackInSlot, hasCustomName, isEmpty, isSendUpdateOnInventoryChanged, markDirty, onInventoryChanged, removeStackFromSlot, setField, setInventorySlotContents, setSendUpdateOnInventoryChanged, updateInventoryHashaddCapabilityInternal, addCapabilitySided, afterSendUpdate, beforeSendUpdate, destroy, getBlock, getCapabilities, getCapability, getNBTTagCompound, getUpdateBackoffTicks, getUpdatePacket, getUpdateTag, hasCapability, isRotatable, isTicking, onDataPacket, onLoad, onUpdateReceived, readGeneratedFieldsFromNBT, sendImmediateUpdate, sendUpdate, setRotatable, setRotation, shouldRefresh, writeGeneratedFieldsToNBTaddInfoToCrashReport, create, deserializeNBT, getBlockMetadata, getBlockType, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, handleUpdateTag, hasFastRenderer, hasWorld, invalidate, isInvalid, mirror, onChunkUnload, onlyOpsCanSetNbt, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRenderInPass, updateContainingBlockInfo, validatepublic static final int SLOTS_CHEST
public static final int SLOTS
public static final int SLOT_CONTAINER
public static java.lang.String TANKNAME
public static final int LIQUID_PER_SLOT
public static final int TICKS_PER_LIQUID
public static final net.minecraftforge.fluids.Fluid ACCEPTED_FLUID
public float prevLidAngle
public float lidAngle
public net.minecraft.util.EnumFacing getRotation()
getRotation in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntitypublic boolean canRenderBreaking()
canRenderBreaking in class net.minecraft.tileentity.TileEntityprotected org.cyclops.cyclopscore.fluid.SingleUseTank newTank(java.lang.String tankName,
int tankSize)
newTank in class org.cyclops.cyclopscore.tileentity.TankInventoryTileEntitypublic boolean isItemValidForSlot(int slot,
net.minecraft.item.ItemStack itemStack)
isItemValidForSlot in interface net.minecraft.inventory.IInventoryisItemValidForSlot in class org.cyclops.cyclopscore.tileentity.InventoryTileEntityBasepublic int getNewState()
TickingTankInventoryTileEntitygetNewState in class TickingTankInventoryTileEntity<TileBloodChest>public void onStateChanged()
TickingTankInventoryTileEntityonStateChanged in class TickingTankInventoryTileEntity<TileBloodChest>public void updateTileEntity()
updateTileEntity in class TickingTankInventoryTileEntity<TileBloodChest>public 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 boolean isUsableByPlayer(net.minecraft.entity.player.EntityPlayer entityPlayer)
isUsableByPlayer in interface net.minecraft.inventory.IInventoryisUsableByPlayer in class org.cyclops.cyclopscore.tileentity.InventoryTileEntityBase