public class FluidTankTileEntity extends SmartTileEntity implements IHaveGoggleInformation
IHaveGoggleInformation.Format| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.util.math.BlockPos |
controller |
protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.fluids.capability.IFluidHandler> |
fluidCapability |
protected boolean |
forceFluidLevelUpdate |
protected int |
height |
protected net.minecraft.util.math.BlockPos |
lastKnownPos |
protected int |
luminosity |
protected boolean |
queuedSync |
protected int |
syncCooldown |
protected net.minecraftforge.fluids.capability.templates.FluidTank |
tankInventory |
protected boolean |
updateConnectivity |
protected int |
width |
protected boolean |
window |
componentSpacing, numberFormat, spacing| Constructor and Description |
|---|
FluidTankTileEntity(net.minecraft.tileentity.TileEntityType<?> tileEntityTypeIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBehaviours(java.util.List<TileEntityBehaviour> behaviours) |
boolean |
addToGoggleTooltip(java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
boolean isPlayerSneaking)
this method will be called when looking at a TileEntity that implemented this
interface
|
void |
applyFluidTankSize(int blocks) |
protected SmartFluidTank |
createInventory() |
protected void |
fromTag(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
Hook only these in future subclasses of STE
|
<T> net.minecraftforge.common.util.LazyOptional<T> |
getCapability(net.minecraftforge.common.capabilities.Capability<T> cap,
net.minecraft.util.Direction side) |
static int |
getCapacityMultiplier() |
net.minecraft.util.math.BlockPos |
getController() |
FluidTankTileEntity |
getControllerTE() |
float |
getFillState() |
InterpolatedChasingValue |
getFluidLevel() |
net.minecraft.util.math.BlockPos |
getLastKnownPos() |
static int |
getMaxHeight() |
static int |
getMaxSize() |
FluidTankTileEntity |
getOtherFluidTankTileEntity(net.minecraft.util.Direction direction) |
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
net.minecraftforge.fluids.IFluidTank |
getTankInventory() |
int |
getTotalTankSize() |
double |
getViewDistance() |
void |
initialize() |
boolean |
isController() |
protected void |
onFluidStackChanged(net.minecraftforge.fluids.FluidStack newFluidStack) |
void |
removeController(boolean keepFluids) |
void |
sendData() |
void |
sendDataImmediately() |
void |
setController(net.minecraft.util.math.BlockPos controller) |
void |
setFluidLevel(InterpolatedChasingValue fluidLevel) |
protected void |
setLuminosity(int luminosity) |
void |
setRemoved() |
void |
setWindows(boolean window) |
void |
tick() |
void |
toggleWindows() |
protected void |
updateConnectivity() |
void |
updateRenderBoundingBox() |
void |
write(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
Hook only these in future subclasses of STE
|
addBehavioursDeferred, attachBehaviourLate, canPlayerUse, forEachBehaviour, getBehaviour, getRequiredItems, getWorld, isFluidHandlerCap, isItemHandlerCap, isVirtual, lazyTick, load, markVirtual, readClientUpdate, removeBehaviour, save, setLazyTickRate, writeSafe, writeToClientcauseBlockUpdate, containedChunk, getTileData, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, packetTargetclearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getType, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, triggerEventareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainedFluidTooltip, formatprotected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.fluids.capability.IFluidHandler> fluidCapability
protected boolean forceFluidLevelUpdate
protected net.minecraftforge.fluids.capability.templates.FluidTank tankInventory
protected net.minecraft.util.math.BlockPos controller
protected net.minecraft.util.math.BlockPos lastKnownPos
protected boolean updateConnectivity
protected boolean window
protected int luminosity
protected int width
protected int height
protected int syncCooldown
protected boolean queuedSync
public FluidTankTileEntity(net.minecraft.tileentity.TileEntityType<?> tileEntityTypeIn)
protected SmartFluidTank createInventory()
protected void updateConnectivity()
public void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class SmartTileEntitypublic net.minecraft.util.math.BlockPos getLastKnownPos()
public boolean isController()
public void initialize()
initialize in class SmartTileEntityprotected void onFluidStackChanged(net.minecraftforge.fluids.FluidStack newFluidStack)
protected void setLuminosity(int luminosity)
public FluidTankTileEntity getControllerTE()
public void applyFluidTankSize(int blocks)
public void removeController(boolean keepFluids)
public void toggleWindows()
public void sendDataImmediately()
public void sendData()
sendData in class SyncedTileEntitypublic void setWindows(boolean window)
public void setController(net.minecraft.util.math.BlockPos controller)
public net.minecraft.util.math.BlockPos getController()
public void updateRenderBoundingBox()
public net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in interface net.minecraftforge.common.extensions.IForgeTileEntitypublic double getViewDistance()
getViewDistance in class net.minecraft.tileentity.TileEntity@Nullable public FluidTankTileEntity getOtherFluidTankTileEntity(net.minecraft.util.Direction direction)
public boolean addToGoggleTooltip(java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
boolean isPlayerSneaking)
IHaveGoggleInformationaddToGoggleTooltip in interface IHaveGoggleInformationtrue if the tooltip creation was successful and should be displayed,
or false if the overlay should not be displayedprotected void fromTag(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
SmartTileEntityfromTag in class SmartTileEntitypublic float getFillState()
public void write(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
SmartTileEntitywrite in class SmartTileEntity@Nonnull
public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(@Nonnull
net.minecraftforge.common.capabilities.Capability<T> cap,
@Nullable
net.minecraft.util.Direction side)
getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability in class net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.tileentity.TileEntity>public void setRemoved()
setRemoved in class SmartTileEntitypublic void addBehaviours(java.util.List<TileEntityBehaviour> behaviours)
addBehaviours in class SmartTileEntitypublic net.minecraftforge.fluids.IFluidTank getTankInventory()
public int getTotalTankSize()
public static int getMaxSize()
public static int getCapacityMultiplier()
public static int getMaxHeight()
public InterpolatedChasingValue getFluidLevel()
public void setFluidLevel(InterpolatedChasingValue fluidLevel)