public class TileFluidHandler extends TileEntity
Modifier and Type | Field and Description |
---|---|
protected FluidTank |
tank |
pos, removed, world
INFINITE_EXTENT_AABB
Constructor and Description |
---|
TileFluidHandler(TileEntityType<?> tileEntityTypeIn) |
Modifier and Type | Method and Description |
---|---|
<T> LazyOptional<T> |
getCapability(Capability<T> capability,
EnumFacing facing)
Retrieves the Optional handler for the capability requested on the specific side.
|
void |
read(NBTTagCompound tag) |
NBTTagCompound |
write(NBTTagCompound tag) |
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, remove, rotate, setPos, setWorld, updateContainingBlockInfo, validate
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT, shouldRenderInPass
getCapability
protected FluidTank tank
public TileFluidHandler(@Nonnull TileEntityType<?> tileEntityTypeIn)
public void read(NBTTagCompound tag)
read
in class TileEntity
public NBTTagCompound write(NBTTagCompound tag)
write
in class TileEntity
@Nonnull public <T> LazyOptional<T> getCapability(@Nonnull Capability<T> capability, @Nullable EnumFacing facing)
ICapabilityProvider
getCapability
in interface ICapabilityProvider
getCapability
in class CapabilityProvider<TileEntity>