Class StockpileSwitchTileEntity

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
All Implemented Interfaces:
IInteractionChecker, IPartialSafeNBT, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>, net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>, net.minecraftforge.common.extensions.IForgeBlockEntity, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>

public class StockpileSwitchTileEntity extends SmartTileEntity
  • Field Details

    • onWhenAbove

      public float onWhenAbove
    • offWhenBelow

      public float offWhenBelow
    • currentLevel

      public float currentLevel
  • Constructor Details

    • StockpileSwitchTileEntity

      public StockpileSwitchTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • read

      protected void read(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
      Description copied from class: SmartTileEntity
      Hook only these in future subclasses of STE
      Overrides:
      read in class SmartTileEntity
    • write

      public void write(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
      Description copied from class: SmartTileEntity
      Hook only these in future subclasses of STE
      Overrides:
      write in class SmartTileEntity
    • getStockLevel

      public float getStockLevel()
    • updateCurrentLevel

      public void updateCurrentLevel()
    • scheduleBlockTick

      protected void scheduleBlockTick()
    • lazyTick

      public void lazyTick()
      Overrides:
      lazyTick in class SmartTileEntity
    • addBehaviours

      public void addBehaviours(List<TileEntityBehaviour> behaviours)
      Specified by:
      addBehaviours in class SmartTileEntity
    • getLevelForDisplay

      public float getLevelForDisplay()
    • getState

      public boolean getState()
    • shouldBePowered

      public boolean shouldBePowered()
    • updatePowerAfterDelay

      public void updatePowerAfterDelay()
    • isPowered

      public boolean isPowered()
    • isInverted

      public boolean isInverted()
    • setInverted

      public void setInverted(boolean inverted)