public class TileEntangledChalice
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 |
|---|
TileEntangledChalice()
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getFillRatio()
Get the filled ratio of this tank.
|
int[] |
getSlotsForFace(net.minecraft.util.EnumFacing side) |
java.lang.String |
getWorldTankId() |
boolean |
isItemValidForSlot(int index,
net.minecraft.item.ItemStack item) |
protected org.cyclops.cyclopscore.fluid.SingleUseTank |
newTank(java.lang.String tankName,
int tankSize) |
void |
setWorldTankId(java.lang.String tankId)
Set the unique key of the internal tank.
|
protected void |
updateTileEntity() |
drain, drain, fill, getTank, isSendUpdateOnTankChanged, isUpdateInventoryHashOnTankContentsChanged, onSendUpdate, onTankChanged, readFromNBT, setSendUpdateOnTankChanged, writeToNBTaddSlotsToSide, getInventoryaddInventoryStateCapability, canAccess, canExtractItem, canInsertItem, canInteractWith, clear, closeInventory, decrStackSize, getDisplayName, getField, getFieldCount, getInventoryHash, getInventoryStackLimit, getName, getSizeInventory, getStackInSlot, hasCustomName, isEmpty, isSendUpdateOnInventoryChanged, isUsableByPlayer, markDirty, onInventoryChanged, openInventory, removeStackFromSlot, setField, setInventorySlotContents, setSendUpdateOnInventoryChanged, updateInventoryHashaddCapabilityInternal, addCapabilitySided, afterSendUpdate, beforeSendUpdate, destroy, getBlock, getCapabilities, getCapability, getNBTTagCompound, getRotation, getUpdateBackoffTicks, getUpdatePacket, getUpdateTag, hasCapability, isRotatable, isTicking, onDataPacket, onLoad, onUpdateReceived, readGeneratedFieldsFromNBT, sendImmediateUpdate, sendUpdate, setRotatable, setRotation, shouldRefresh, writeGeneratedFieldsToNBTaddInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, handleUpdateTag, hasFastRenderer, hasWorld, invalidate, isInvalid, mirror, onChunkUnload, onlyOpsCanSetNbt, receiveClientEvent, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRenderInPass, updateContainingBlockInfo, validatepublic static final int BASE_CAPACITY
public static final java.lang.String NBT_TAG_TANK
protected org.cyclops.cyclopscore.fluid.SingleUseTank newTank(java.lang.String tankName,
int tankSize)
newTank in class org.cyclops.cyclopscore.tileentity.TankInventoryTileEntitypublic 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 void updateTileEntity()
updateTileEntity in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntitypublic java.lang.String getWorldTankId()
public void setWorldTankId(java.lang.String tankId)
tankId - The new id.