public class TileDarkTank
extends org.cyclops.cyclopscore.tileentity.TankInventoryTileEntity
implements org.cyclops.cyclopscore.tileentity.CyclopsTileEntity.ITickingTile
| 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, slotSides| Constructor and Description |
|---|
TileDarkTank()
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canFill(net.minecraft.util.EnumFacing from,
net.minecraftforge.fluids.Fluid fluid) |
protected net.minecraft.item.ItemStack |
fill(net.minecraft.item.ItemStack itemStack) |
double |
getFillRatio()
Get the filled ratio of this tank.
|
int[] |
getSlotsForFace(net.minecraft.util.EnumFacing side) |
boolean |
isItemValidForSlot(int index,
net.minecraft.item.ItemStack item) |
protected boolean |
shouldAutoDrain() |
protected void |
updateTileEntity() |
canDrain, drain, drain, drain, drain, fill, fill, getTank, getTankInfo, isSendUpdateOnTankChanged, newTank, onSendUpdate, readFromNBT, setSendUpdateOnTankChanged, writeToNBTaddSlotsToSide, getInventorycanAccess, canExtractItem, canInsertItem, clear, closeInventory, decrStackSize, getDisplayName, getField, getFieldCount, getInventoryStackLimit, getName, getSizeInventory, getStackInSlot, hasCustomName, isSendUpdateOnInventoryChanged, isUseableByPlayer, onInventoryChanged, openInventory, removeStackFromSlot, setField, setInventorySlotContents, setSendUpdateOnInventoryChangedaddCapabilityInternal, addCapabilitySided, afterSendUpdate, beforeSendUpdate, canInteractWith, destroy, getBlock, getCapabilities, getCapability, getDescriptionPacket, getNBTTagCompound, getRotation, getUpdateBackoffTicks, hasCapability, isRotatable, isTicking, onDataPacket, onLoad, onUpdateReceived, readGeneratedFieldsFromNBT, sendImmediateUpdate, sendUpdate, setRotatable, setRotation, shouldRefresh, writeGeneratedFieldsToNBTaddInfoToCrashReport, addMapping, canRenderBreaking, createTileEntity, deserializeNBT, func_183000_F, getBlockMetadata, getBlockType, getDistanceSq, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasFastRenderer, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, receiveClientEvent, restrictNBTCopy, serializeNBT, setPos, setWorldObj, shouldRenderInPass, updateContainingBlockInfo, validatepublic static final int BASE_CAPACITY
public static final java.lang.String NBT_TAG_TANK
public boolean isItemValidForSlot(int index,
net.minecraft.item.ItemStack item)
isItemValidForSlot in interface net.minecraft.inventory.IInventoryisItemValidForSlot in class org.cyclops.cyclopscore.tileentity.InventoryTileEntityBasepublic int[] getSlotsForFace(net.minecraft.util.EnumFacing side)
getSlotsForFace in interface net.minecraft.inventory.ISidedInventorygetSlotsForFace in class org.cyclops.cyclopscore.tileentity.InventoryTileEntitypublic double getFillRatio()
protected boolean shouldAutoDrain()
protected void updateTileEntity()
updateTileEntity in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntityprotected net.minecraft.item.ItemStack fill(net.minecraft.item.ItemStack itemStack)
public boolean canFill(net.minecraft.util.EnumFacing from,
net.minecraftforge.fluids.Fluid fluid)
canFill in interface net.minecraftforge.fluids.IFluidHandlercanFill in class org.cyclops.cyclopscore.tileentity.TankInventoryTileEntity