Class CommandBlockBlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.CommandBlockBlockEntity

public class CommandBlockBlockEntity
extends BlockEntity
  • Field Details

    • powered

      private boolean powered
    • auto

      private boolean auto
    • conditionMet

      private boolean conditionMet
    • needsUpdatePacket

      private boolean needsUpdatePacket
    • commandExecutor

      private final CommandBlockExecutor commandExecutor
  • Constructor Details

    • CommandBlockBlockEntity

      public CommandBlockBlockEntity()
  • Method Details

    • toTag

      public CompoundTag toTag​(CompoundTag tag)
      Overrides:
      toTag in class BlockEntity
    • fromTag

      public void fromTag​(BlockState state, CompoundTag tag)
      Overrides:
      fromTag in class BlockEntity
    • toUpdatePacket

      @Nullable public BlockEntityUpdateS2CPacket toUpdatePacket()
      Overrides:
      toUpdatePacket in class BlockEntity
    • copyItemDataRequiresOperator

      public boolean copyItemDataRequiresOperator()
      Overrides:
      copyItemDataRequiresOperator in class BlockEntity
    • getCommandExecutor

      public CommandBlockExecutor getCommandExecutor()
    • setPowered

      public void setPowered​(boolean powered)
    • isPowered

      public boolean isPowered()
    • isAuto

      public boolean isAuto()
    • setAuto

      public void setAuto​(boolean auto)
    • method_23359

      public void method_23359()
    • method_23360

      private void method_23360()
    • isConditionMet

      public boolean isConditionMet()
    • updateConditionMet

      public boolean updateConditionMet()
    • needsUpdatePacket

      public boolean needsUpdatePacket()
    • setNeedsUpdatePacket

      public void setNeedsUpdatePacket​(boolean needsUpdatePacket)
    • getCommandBlockType

      public CommandBlockBlockEntity.Type getCommandBlockType()
    • isConditionalCommandBlock

      public boolean isConditionalCommandBlock()
    • cancelRemoval

      public void cancelRemoval()
      Overrides:
      cancelRemoval in class BlockEntity