public class SpoutTileEntity extends SmartTileEntity implements IHaveGoggleInformation
IHaveGoggleInformation.Format| Modifier and Type | Field and Description |
|---|---|
protected BeltProcessingBehaviour |
beltProcessing |
protected net.minecraft.util.math.AxisAlignedBB |
cachedBoundingBox |
BlockSpoutingBehaviour |
customProcess |
static int |
FILLING_TIME |
int |
processingTicks |
boolean |
sendSplash |
protected static int |
SPLASH_PARTICLE_COUNT |
componentSpacing, numberFormat, spacing| Constructor and Description |
|---|
SpoutTileEntity(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
|
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) |
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
protected BeltProcessingBehaviour.ProcessingResult |
onItemReceived(TransportedItemStack transported,
TransportedItemStackHandlerBehaviour handler) |
protected void |
spawnProcessingParticles(net.minecraftforge.fluids.FluidStack fluid) |
protected void |
spawnSplash(net.minecraftforge.fluids.FluidStack fluid) |
void |
tick() |
protected BeltProcessingBehaviour.ProcessingResult |
whenItemHeld(TransportedItemStack transported,
TransportedItemStackHandlerBehaviour handler) |
protected void |
write(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
Hook only these in future subclasses of STE
|
addBehavioursDeferred, attachBehaviourLate, canPlayerUse, forEachBehaviour, getBehaviour, getRequiredItems, getWorld, initialize, isFluidHandlerCap, isItemHandlerCap, isVirtual, lazyTick, load, markVirtual, readClientUpdate, removeBehaviour, save, setLazyTickRate, setRemoved, writeSafe, writeToClientcauseBlockUpdate, containedChunk, getTileData, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, packetTarget, sendDataclearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getType, getViewDistance, 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, formatpublic static final int FILLING_TIME
protected BeltProcessingBehaviour beltProcessing
public int processingTicks
public boolean sendSplash
public BlockSpoutingBehaviour customProcess
protected net.minecraft.util.math.AxisAlignedBB cachedBoundingBox
protected static int SPLASH_PARTICLE_COUNT
public SpoutTileEntity(net.minecraft.tileentity.TileEntityType<?> tileEntityTypeIn)
public net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in interface net.minecraftforge.common.extensions.IForgeTileEntitypublic void addBehaviours(java.util.List<TileEntityBehaviour> behaviours)
addBehaviours in class SmartTileEntityprotected BeltProcessingBehaviour.ProcessingResult onItemReceived(TransportedItemStack transported, TransportedItemStackHandlerBehaviour handler)
protected BeltProcessingBehaviour.ProcessingResult whenItemHeld(TransportedItemStack transported, TransportedItemStackHandlerBehaviour handler)
protected void write(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
SmartTileEntitywrite in class SmartTileEntityprotected void fromTag(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
SmartTileEntityfromTag in class SmartTileEntitypublic <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(net.minecraftforge.common.capabilities.Capability<T> cap,
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 tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class SmartTileEntityprotected void spawnProcessingParticles(net.minecraftforge.fluids.FluidStack fluid)
protected void spawnSplash(net.minecraftforge.fluids.FluidStack fluid)
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 displayed