public class TileFluidHandler extends TileEntity
| Modifier and Type | Field and Description | 
|---|---|
protected FluidTank | 
tank  | 
blockType, INFINITE_EXTENT_AABB, pos, tileEntityInvalid, world| Constructor and Description | 
|---|
TileFluidHandler()  | 
| Modifier and Type | Method and Description | 
|---|---|
<T> T | 
getCapability(Capability<T> capability,
             EnumFacing facing)
Retrieves the handler for the capability requested on the specific side. 
 | 
boolean | 
hasCapability(Capability<?> capability,
             EnumFacing facing)
Determines if this object has support for the capability in question on the specific side. 
 | 
void | 
readFromNBT(NBTTagCompound tag)  | 
NBTTagCompound | 
writeToNBT(NBTTagCompound tag)  | 
addInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDisplayName, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getUpdatePacket, getUpdateTag, getWorld, handleUpdateTag, hasFastRenderer, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onDataPacket, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validateprotected FluidTank tank
public void readFromNBT(NBTTagCompound tag)
readFromNBT in class TileEntitypublic NBTTagCompound writeToNBT(NBTTagCompound tag)
writeToNBT in class TileEntitypublic boolean hasCapability(Capability<?> capability, EnumFacing facing)
ICapabilityProviderICapabilityProvider.getCapability(Capability, EnumFacing).
 
 Basically, this method functions analogously to Map.containsKey(Object).
 
Example: A Pipe getting a cover placed on one side causing it lose the Inventory attachment function for that side.
This is a light weight version of getCapability, intended for metadata uses.
hasCapability in interface ICapabilityProviderhasCapability in class TileEntitycapability - The capability to checkfacing - The Side to check from:
   CAN BE NULL. Null is defined to represent 'internal' or 'self'ICapabilityProvider.getCapability(Capability, EnumFacing) 
 must not return null.public <T> T getCapability(Capability<T> capability, EnumFacing facing)
ICapabilityProvider
 Basically, this method functions analogously to Map.get(Object).
getCapability in interface ICapabilityProvidergetCapability in class TileEntitycapability - The capability to checkfacing - The Side to check from, 
   CAN BE NULL. Null is defined to represent 'internal' or 'self'ICapabilityProvider.hasCapability(Capability, EnumFacing) 
 would return true.