public class TileFluidHandler extends TileEntity
| Modifier and Type | Field and Description |
|---|---|
private LazyOptional<IFluidHandler> |
holder |
protected FluidTank |
tank |
pos, removed, worldINFINITE_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, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapabilityprotected FluidTank tank
private final LazyOptional<IFluidHandler> holder
public TileFluidHandler(@Nonnull
TileEntityType<?> tileEntityTypeIn)
public void read(CompoundNBT tag)
read in class TileEntitypublic CompoundNBT write(CompoundNBT tag)
write in class TileEntity@Nonnull public <T> LazyOptional<T> getCapability(@Nonnull Capability<T> capability, @Nullable Direction facing)
ICapabilityProvidergetCapability in interface ICapabilityProvidergetCapability in class CapabilityProvider<TileEntity>