Class CommandBlockTileEntity

All Implemented Interfaces:
ICapabilityProvider, ICapabilitySerializable<CompoundNBT>, IForgeTileEntity, INBTSerializable<CompoundNBT>

public class CommandBlockTileEntity extends TileEntity
  • Field Details

    • powered

      private boolean powered
    • auto

      private boolean auto
    • conditionMet

      private boolean conditionMet
    • sendToClient

      private boolean sendToClient
    • commandBlock

      private final CommandBlockLogic commandBlock
  • Constructor Details

    • CommandBlockTileEntity

      public CommandBlockTileEntity()
  • Method Details

    • save

      public CompoundNBT save(CompoundNBT p_189515_1_)
      Overrides:
      save in class TileEntity
    • load

      public void load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
      Overrides:
      load in class TileEntity
    • getUpdatePacket

      @Nullable public SUpdateTileEntityPacket getUpdatePacket()
      Overrides:
      getUpdatePacket in class TileEntity
    • onlyOpCanSetNbt

      public boolean onlyOpCanSetNbt()
      Overrides:
      onlyOpCanSetNbt in class TileEntity
    • getCommandBlock

      public CommandBlockLogic getCommandBlock()
    • setPowered

      public void setPowered(boolean p_184250_1_)
    • isPowered

      public boolean isPowered()
    • isAutomatic

      public boolean isAutomatic()
    • setAutomatic

      public void setAutomatic(boolean p_184253_1_)
    • onModeSwitch

      public void onModeSwitch()
    • scheduleTick

      private void scheduleTick()
    • wasConditionMet

      public boolean wasConditionMet()
    • markConditionMet

      public boolean markConditionMet()
    • isSendToClient

      public boolean isSendToClient()
    • setSendToClient

      public void setSendToClient(boolean p_184252_1_)
    • getMode

      public CommandBlockTileEntity.Mode getMode()
    • isConditional

      public boolean isConditional()
    • clearRemoved

      public void clearRemoved()
      Overrides:
      clearRemoved in class TileEntity