public class StockpileSwitchTileEntity extends SmartTileEntity
| Modifier and Type | Field and Description |
|---|---|
float |
currentLevel |
float |
offWhenBelow |
float |
onWhenAbove |
| Constructor and Description |
|---|
StockpileSwitchTileEntity(net.minecraft.tileentity.TileEntityType<?> typeIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBehaviours(java.util.List<TileEntityBehaviour> behaviours) |
protected void |
fromTag(net.minecraft.block.BlockState blockState,
net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
Hook only these in future subclasses of STE
|
float |
getLevelForDisplay() |
boolean |
getState() |
float |
getStockLevel() |
boolean |
isInverted() |
boolean |
isPowered() |
void |
lazyTick() |
protected void |
scheduleBlockTick() |
void |
setInverted(boolean inverted) |
boolean |
shouldBePowered() |
void |
updateCurrentLevel() |
void |
updatePowerAfterDelay() |
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, load, markVirtual, readClientUpdate, removeBehaviour, save, setLazyTickRate, setRemoved, tick, 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, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic float onWhenAbove
public float offWhenBelow
public float currentLevel
public StockpileSwitchTileEntity(net.minecraft.tileentity.TileEntityType<?> typeIn)
protected void fromTag(net.minecraft.block.BlockState blockState,
net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
SmartTileEntityfromTag in class SmartTileEntitypublic void write(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
SmartTileEntitywrite in class SmartTileEntitypublic float getStockLevel()
public void updateCurrentLevel()
protected void scheduleBlockTick()
public void lazyTick()
lazyTick in class SmartTileEntitypublic void addBehaviours(java.util.List<TileEntityBehaviour> behaviours)
addBehaviours in class SmartTileEntitypublic float getLevelForDisplay()
public boolean getState()
public boolean shouldBePowered()
public void updatePowerAfterDelay()
public boolean isPowered()
public boolean isInverted()
public void setInverted(boolean inverted)