public class TileDarkTank extends TankInventoryTileEntity
| Modifier and Type | Field and Description |
|---|---|
static int |
BASE_CAPACITY
The base capacity of the tank.
|
static java.lang.String |
NBT_TAG_TANK
The NBT tag name of the tank.
|
sendUpdateOnTankChanged, tankSizeinventory, sendUpdateOnInventoryChanged, slotSides, slotSidesSize| Constructor and Description |
|---|
TileDarkTank()
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canFill(net.minecraftforge.common.util.ForgeDirection from,
net.minecraftforge.fluids.Fluid fluid) |
int[] |
getAccessibleSlotsFromSide(int side) |
double |
getFillRatio()
Get the filled ratio of this tank.
|
boolean |
isItemValidForSlot(int side,
net.minecraft.item.ItemStack item) |
protected boolean |
shouldAutoDrain() |
protected void |
updateTileEntity()
Override this method instead of
EvilCraftTileEntity.updateEntity(). |
canDrain, drain, drain, drain, drain, fill, fill, getTank, getTankInfo, isSendUpdateOnTankChanged, newTank, onSendUpdate, readFromNBT, setSendUpdateOnTankChanged, writeToNBTaddSlotsToSide, canExtractItem, canInsertItem, closeInventory, decrStackSize, getInventory, getInventoryName, getInventoryStackLimit, getSizeInventory, getStackInSlot, getStackInSlotOnClosing, hasCustomInventoryName, isSendUpdateOnInventoryChanged, isUseableByPlayer, onInventoryChanged, openInventory, setInventorySlotContents, setSendUpdateOnInventoryChangedafterSendUpdate, beforeSendUpdate, canInteractWith, destroy, getBlock, getDescriptionPacket, getNBTTagCompound, getRotation, getUpdateBackoffTicks, isRotatable, isTileValid, onDataPacket, onLoad, onUpdateReceived, sendImmediateUpdate, sendUpdate, setRotatable, setRotation, updateEntityaddMapping, canUpdate, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorldObj, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validatepublic static final int BASE_CAPACITY
public static final java.lang.String NBT_TAG_TANK
public boolean isItemValidForSlot(int side,
net.minecraft.item.ItemStack item)
public int[] getAccessibleSlotsFromSide(int side)
getAccessibleSlotsFromSide in interface net.minecraft.inventory.ISidedInventorygetAccessibleSlotsFromSide in class InventoryTileEntitypublic double getFillRatio()
protected boolean shouldAutoDrain()
protected void updateTileEntity()
EvilCraftTileEntityEvilCraftTileEntity.updateEntity().
This method is called each tick.updateTileEntity in class EvilCraftTileEntitypublic boolean canFill(net.minecraftforge.common.util.ForgeDirection from,
net.minecraftforge.fluids.Fluid fluid)
canFill in interface net.minecraftforge.fluids.IFluidHandlercanFill in class TankInventoryTileEntity