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, sendUpdateOnInventoryChanged, slotSides, slotSidesSize| Constructor and Description |
|---|
TileBloodChest()
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeInventory() |
int |
getNewState()
Get the new (numerical) state for this tile entity.
|
boolean |
isItemValidForSlot(int slot,
net.minecraft.item.ItemStack itemStack) |
boolean |
isUseableByPlayer(net.minecraft.entity.player.EntityPlayer entityPlayer) |
protected SingleUseTank |
newTank(java.lang.String tankName,
int tankSize) |
void |
onStateChanged()
What needs to happen when the (numerical) state is changed.
|
void |
openInventory() |
boolean |
receiveClientEvent(int i,
int j) |
void |
updateTileEntity()
Override this method instead of
EvilCraftTileEntity.updateEntity(). |
addTicker, canUpdate, getCurrentState, getTickers, readFromNBT, writeToNBTcanDrain, canFill, drain, drain, drain, drain, fill, fill, getTank, getTankInfo, isSendUpdateOnTankChanged, onSendUpdate, setSendUpdateOnTankChangedaddSlotsToSide, canExtractItem, canInsertItem, decrStackSize, getAccessibleSlotsFromSide, getInventory, getInventoryName, getInventoryStackLimit, getSizeInventory, getStackInSlot, getStackInSlotOnClosing, hasCustomInventoryName, isSendUpdateOnInventoryChanged, onInventoryChanged, setInventorySlotContents, setSendUpdateOnInventoryChangedafterSendUpdate, beforeSendUpdate, canInteractWith, destroy, getBlock, getDescriptionPacket, getNBTTagCompound, getRotation, getUpdateBackoffTicks, isRotatable, isTileValid, onDataPacket, onLoad, onUpdateReceived, sendImmediateUpdate, sendUpdate, setRotatable, setRotation, updateEntityaddMapping, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorldObj, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, setWorldObj, shouldRefresh, 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
protected SingleUseTank newTank(java.lang.String tankName, int tankSize)
newTank in class TankInventoryTileEntitypublic boolean isItemValidForSlot(int slot,
net.minecraft.item.ItemStack itemStack)
public int getNewState()
TickingTankInventoryTileEntitygetNewState in class TickingTankInventoryTileEntity<TileBloodChest>public void onStateChanged()
TickingTankInventoryTileEntityonStateChanged in class TickingTankInventoryTileEntity<TileBloodChest>public void updateTileEntity()
EvilCraftTileEntityEvilCraftTileEntity.updateEntity().
This method is called each tick.updateTileEntity in class TickingTankInventoryTileEntity<TileBloodChest>public boolean receiveClientEvent(int i,
int j)
receiveClientEvent in class net.minecraft.tileentity.TileEntitypublic void openInventory()
openInventory in interface net.minecraft.inventory.IInventoryopenInventory in class InventoryTileEntitypublic void closeInventory()
closeInventory in interface net.minecraft.inventory.IInventorycloseInventory in class InventoryTileEntitypublic boolean isUseableByPlayer(net.minecraft.entity.player.EntityPlayer entityPlayer)
isUseableByPlayer in interface net.minecraft.inventory.IInventoryisUseableByPlayer in class InventoryTileEntity