public class TileFluidHandler extends TileEntity
Modifier and Type | Field and Description |
---|---|
private LazyOptional<IFluidHandler> |
holder |
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,
Direction facing)
Retrieves the Optional handler for the capability requested on the specific side.
|
void |
read(CompoundNBT tag) |
CompoundNBT |
write(CompoundNBT tag) |
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, remove, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlock
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
getCapability
protected FluidTank tank
private final LazyOptional<IFluidHandler> holder
public TileFluidHandler(@Nonnull TileEntityType<?> tileEntityTypeIn)
public void read(CompoundNBT tag)
read
in class TileEntity
public CompoundNBT write(CompoundNBT tag)
write
in class TileEntity
@Nonnull public <T> LazyOptional<T> getCapability(@Nonnull Capability<T> capability, @Nullable Direction facing)
ICapabilityProvider
getCapability
in interface ICapabilityProvider
getCapability
in class CapabilityProvider<TileEntity>