Class CommandBlockBlockEntity

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

public class CommandBlockBlockEntity extends BlockEntity
Mappings:
Namespace Name
official cks
intermediary net/minecraft/class_2593
named net/minecraft/block/entity/CommandBlockBlockEntity
  • Field Details

    • powered

      private boolean powered
      Mappings:
      Namespace Name Mixin selector
      official a Lcks;a:Z
      intermediary field_11919 Lnet/minecraft/class_2593;field_11919:Z
      named powered Lnet/minecraft/block/entity/CommandBlockBlockEntity;powered:Z
    • auto

      private boolean auto
      Mappings:
      Namespace Name Mixin selector
      official b Lcks;b:Z
      intermediary field_11918 Lnet/minecraft/class_2593;field_11918:Z
      named auto Lnet/minecraft/block/entity/CommandBlockBlockEntity;auto:Z
    • conditionMet

      private boolean conditionMet
      Mappings:
      Namespace Name Mixin selector
      official c Lcks;c:Z
      intermediary field_11917 Lnet/minecraft/class_2593;field_11917:Z
      named conditionMet Lnet/minecraft/block/entity/CommandBlockBlockEntity;conditionMet:Z
    • needsUpdatePacket

      private boolean needsUpdatePacket
      Mappings:
      Namespace Name Mixin selector
      official d Lcks;d:Z
      intermediary field_11916 Lnet/minecraft/class_2593;field_11916:Z
      named needsUpdatePacket Lnet/minecraft/block/entity/CommandBlockBlockEntity;needsUpdatePacket:Z
    • commandExecutor

      private final CommandBlockExecutor commandExecutor
      Mappings:
      Namespace Name Mixin selector
      official e Lcks;e:Lbxl;
      intermediary field_11920 Lnet/minecraft/class_2593;field_11920:Lnet/minecraft/class_1918;
      named commandExecutor Lnet/minecraft/block/entity/CommandBlockBlockEntity;commandExecutor:Lnet/minecraft/world/CommandBlockExecutor;
  • Constructor Details

    • CommandBlockBlockEntity

      public CommandBlockBlockEntity(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcks;<init>(Lgh;Lcmo;)V
      intermediary <init> Lnet/minecraft/class_2593;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named <init> Lnet/minecraft/block/entity/CommandBlockBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
  • Method Details

    • writeNbt

      protected void writeNbt(NbtCompound nbt)
      Overrides:
      writeNbt in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lckl;b(Lnb;)V
      intermediary method_11007 Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)V
      named writeNbt Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • readNbt

      public void readNbt(NbtCompound nbt)
      Overrides:
      readNbt in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lckl;a(Lnb;)V
      intermediary method_11014 Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
      named readNbt Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • toUpdatePacket

      Description copied from class: BlockEntity
      Implement and return a packet that should be sent to players nearby when the observable state of this block entity changes. Return null to not send an update packet.

      If the data returned by initial chunk data is suitable for updates, the following shortcut can be used to create an update packet: BlockEntityUpdateS2CPacket.create(this).

      The NBT will be passed to BlockEntity.readNbt(net.minecraft.nbt.NbtCompound) on the client.

      Overrides:
      toUpdatePacket in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lcks;c()Lpz;
      intermediary method_38246 Lnet/minecraft/class_2593;method_38246()Lnet/minecraft/class_2622;
      named toUpdatePacket Lnet/minecraft/block/entity/CommandBlockBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
    • copyItemDataRequiresOperator

      public boolean copyItemDataRequiresOperator()
      Overrides:
      copyItemDataRequiresOperator in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official t Lckl;t()Z
      intermediary method_11011 Lnet/minecraft/class_2586;method_11011()Z
      named copyItemDataRequiresOperator Lnet/minecraft/block/entity/BlockEntity;copyItemDataRequiresOperator()Z
    • getCommandExecutor

      public CommandBlockExecutor getCommandExecutor()
      Mappings:
      Namespace Name Mixin selector
      official d Lcks;d()Lbxl;
      intermediary method_11040 Lnet/minecraft/class_2593;method_11040()Lnet/minecraft/class_1918;
      named getCommandExecutor Lnet/minecraft/block/entity/CommandBlockBlockEntity;getCommandExecutor()Lnet/minecraft/world/CommandBlockExecutor;
    • setPowered

      public void setPowered(boolean powered)
      Mappings:
      Namespace Name Mixin selector
      official a Lcks;a(Z)V
      intermediary method_11038 Lnet/minecraft/class_2593;method_11038(Z)V
      named setPowered Lnet/minecraft/block/entity/CommandBlockBlockEntity;setPowered(Z)V
    • isPowered

      public boolean isPowered()
      Mappings:
      Namespace Name Mixin selector
      official f Lcks;f()Z
      intermediary method_11043 Lnet/minecraft/class_2593;method_11043()Z
      named isPowered Lnet/minecraft/block/entity/CommandBlockBlockEntity;isPowered()Z
    • isAuto

      public boolean isAuto()
      Mappings:
      Namespace Name Mixin selector
      official g Lcks;g()Z
      intermediary method_11042 Lnet/minecraft/class_2593;method_11042()Z
      named isAuto Lnet/minecraft/block/entity/CommandBlockBlockEntity;isAuto()Z
    • setAuto

      public void setAuto(boolean auto)
      Mappings:
      Namespace Name Mixin selector
      official b Lcks;b(Z)V
      intermediary method_11041 Lnet/minecraft/class_2593;method_11041(Z)V
      named setAuto Lnet/minecraft/block/entity/CommandBlockBlockEntity;setAuto(Z)V
    • updateCommandBlock

      public void updateCommandBlock()
      Mappings:
      Namespace Name Mixin selector
      official i Lcks;i()V
      intermediary method_23359 Lnet/minecraft/class_2593;method_23359()V
      named updateCommandBlock Lnet/minecraft/block/entity/CommandBlockBlockEntity;updateCommandBlock()V
    • scheduleAutoTick

      private void scheduleAutoTick()
      Mappings:
      Namespace Name Mixin selector
      official z Lcks;z()V
      intermediary method_23360 Lnet/minecraft/class_2593;method_23360()V
      named scheduleAutoTick Lnet/minecraft/block/entity/CommandBlockBlockEntity;scheduleAutoTick()V
    • isConditionMet

      public boolean isConditionMet()
      Mappings:
      Namespace Name Mixin selector
      official j Lcks;j()Z
      intermediary method_11044 Lnet/minecraft/class_2593;method_11044()Z
      named isConditionMet Lnet/minecraft/block/entity/CommandBlockBlockEntity;isConditionMet()Z
    • updateConditionMet

      public boolean updateConditionMet()
      Mappings:
      Namespace Name Mixin selector
      official v Lcks;v()Z
      intermediary method_11045 Lnet/minecraft/class_2593;method_11045()Z
      named updateConditionMet Lnet/minecraft/block/entity/CommandBlockBlockEntity;updateConditionMet()Z
    • needsUpdatePacket

      public boolean needsUpdatePacket()
      Mappings:
      Namespace Name Mixin selector
      official w Lcks;w()Z
      intermediary method_11036 Lnet/minecraft/class_2593;method_11036()Z
      named needsUpdatePacket Lnet/minecraft/block/entity/CommandBlockBlockEntity;needsUpdatePacket()Z
    • setNeedsUpdatePacket

      public void setNeedsUpdatePacket(boolean needsUpdatePacket)
      Mappings:
      Namespace Name Mixin selector
      official c Lcks;c(Z)V
      intermediary method_11037 Lnet/minecraft/class_2593;method_11037(Z)V
      named setNeedsUpdatePacket Lnet/minecraft/block/entity/CommandBlockBlockEntity;setNeedsUpdatePacket(Z)V
    • getCommandBlockType

      public CommandBlockBlockEntity.Type getCommandBlockType()
      Mappings:
      Namespace Name Mixin selector
      official x Lcks;x()Lcks$a;
      intermediary method_11039 Lnet/minecraft/class_2593;method_11039()Lnet/minecraft/class_2593$class_2594;
      named getCommandBlockType Lnet/minecraft/block/entity/CommandBlockBlockEntity;getCommandBlockType()Lnet/minecraft/block/entity/CommandBlockBlockEntity$Type;
    • isConditionalCommandBlock

      public boolean isConditionalCommandBlock()
      Mappings:
      Namespace Name Mixin selector
      official y Lcks;y()Z
      intermediary method_11046 Lnet/minecraft/class_2593;method_11046()Z
      named isConditionalCommandBlock Lnet/minecraft/block/entity/CommandBlockBlockEntity;isConditionalCommandBlock()Z