Class CommandBlock

All Implemented Interfaces:
BlockEntityProvider, Itemable

public class CommandBlock extends BlockWithEntity
Mappings:
Namespace Name
official bdm
intermediary net/minecraft/class_1302
named net/minecraft/block/CommandBlock
  • Field Details

    • field_15748

      private static final Logger field_15748
      Mappings:
      Namespace Name Mixin selector
      official c Lbdm;c:Lorg/apache/logging/log4j/Logger;
      intermediary field_15748 Lnet/minecraft/class_1302;field_15748:Lorg/apache/logging/log4j/Logger;
      named field_15748 Lnet/minecraft/block/CommandBlock;field_15748:Lorg/apache/logging/log4j/Logger;
    • field_12636

      public static final DirectionProperty field_12636
      Mappings:
      Namespace Name Mixin selector
      official a Lbdm;a:Lbme;
      intermediary field_12636 Lnet/minecraft/class_1302;field_12636:Lnet/minecraft/class_2244;
      named field_12636 Lnet/minecraft/block/CommandBlock;field_12636:Lnet/minecraft/state/property/DirectionProperty;
    • field_18253

      public static final BooleanProperty field_18253
      Mappings:
      Namespace Name Mixin selector
      official b Lbdm;b:Lbmb;
      intermediary field_18253 Lnet/minecraft/class_1302;field_18253:Lnet/minecraft/class_2243;
      named field_18253 Lnet/minecraft/block/CommandBlock;field_18253:Lnet/minecraft/state/property/BooleanProperty;
  • Constructor Details

    • CommandBlock

      public CommandBlock(Block.Builder settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbcs;<init>(Lbcs$c;)V
      intermediary <init> Lnet/minecraft/class_197;<init>(Lnet/minecraft/class_197$class_3692;)V
      named <init> Lnet/minecraft/block/Block;<init>(Lnet/minecraft/block/Block$Builder;)V
  • Method Details

    • method_16671

      public BlockEntity method_16671(BlockView blockView)
      Mappings:
      Namespace Name Mixin selector
      official a Lben;a(Laxk;)Lbji;
      intermediary method_16671 Lnet/minecraft/class_1451;method_16671(Lnet/minecraft/class_1158;)Lnet/minecraft/class_226;
      named method_16671 Lnet/minecraft/block/BlockEntityProvider;method_16671(Lnet/minecraft/world/BlockView;)Lnet/minecraft/block/entity/BlockEntity;
    • onBreak

      public void onBreak(BlockState state, World world, BlockPos arg3, Block block, BlockPos pos)
      Overrides:
      onBreak in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Laxy;Lel;Lbcs;Lel;)V
      intermediary method_8641 Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_197;Lnet/minecraft/class_2552;)V
      named onBreak Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;)V
    • method_8661

      public void method_8661(BlockState blockState, World world, BlockPos blockPos, Random random)
      Overrides:
      method_8661 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Laxy;Lel;Ljava/util/Random;)V
      intermediary method_8661 Lnet/minecraft/class_197;method_8661(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Ljava/util/Random;)V
      named method_8661 Lnet/minecraft/block/Block;method_8661(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • method_14318

      private void method_14318(BlockState blockState, World world, BlockPos blockPos, CommandBlockExecutor commandBlockExecutor, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdm;a(Lblc;Laxy;Lel;Laxh;Z)V
      intermediary method_14318 Lnet/minecraft/class_1302;method_14318(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1740;Z)V
      named method_14318 Lnet/minecraft/block/CommandBlock;method_14318(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/CommandBlockExecutor;Z)V
    • method_16565

      public int method_16565(RenderBlockView renderBlockView)
      Overrides:
      method_16565 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Layc;)I
      intermediary method_16565 Lnet/minecraft/class_197;method_16565(Lnet/minecraft/class_3599;)I
      named method_16565 Lnet/minecraft/block/Block;method_16565(Lnet/minecraft/world/RenderBlockView;)I
    • method_421

      public boolean method_421(BlockState blockState, World world, BlockPos blockPos, PlayerEntity playerEntity, Hand hand, Direction direction, float float2, float float3, float float4)
      Overrides:
      method_421 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Laxy;Lel;Laog;Ladk;Leq;FFF)Z
      intermediary method_421 Lnet/minecraft/class_197;method_421(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_988;Lnet/minecraft/class_2961;Lnet/minecraft/class_1354;FFF)Z
      named method_421 Lnet/minecraft/block/Block;method_421(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/math/Direction;FFF)Z
    • method_11577

      public boolean method_11577(BlockState state)
      Overrides:
      method_11577 in class Block
      Mappings:
      Namespace Name Mixin selector
      official u Lbcs;u(Lblc;)Z
      intermediary method_11577 Lnet/minecraft/class_197;method_11577(Lnet/minecraft/class_2232;)Z
      named method_11577 Lnet/minecraft/block/Block;method_11577(Lnet/minecraft/block/BlockState;)Z
    • getComparatorOutput

      public int getComparatorOutput(BlockState state, World world, BlockPos pos)
      Overrides:
      getComparatorOutput in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Laxy;Lel;)I
      intermediary method_8686 Lnet/minecraft/class_197;method_8686(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)I
      named getComparatorOutput Lnet/minecraft/block/Block;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
    • onPlaced

      public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
      Runs when the block is placed by an entity
      Overrides:
      onPlaced in class Block
      Parameters:
      world - The world that the block is in
      pos - The block's position
      state - The block's BlockState
      placer - The entity who placed the block
      itemStack - ItemStack instance
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Laxy;Lel;Lblc;Lafa;Late;)V
      intermediary method_419 Lnet/minecraft/class_197;method_419(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_1699;Lnet/minecraft/class_1071;)V
      named onPlaced Lnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
    • method_403

      public int method_403(BlockState blockState, Random random)
      Overrides:
      method_403 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Ljava/util/Random;)I
      intermediary method_403 Lnet/minecraft/class_197;method_403(Lnet/minecraft/class_2232;Ljava/util/Random;)I
      named method_403 Lnet/minecraft/block/Block;method_403(Lnet/minecraft/block/BlockState;Ljava/util/Random;)I
    • getBlockRenderType

      public BlockRenderType getBlockRenderType(BlockState state)
      Overrides:
      getBlockRenderType in class BlockWithEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lbcs;c(Lblc;)Lbgy;
      intermediary method_11552 Lnet/minecraft/class_197;method_11552(Lnet/minecraft/class_2232;)Lnet/minecraft/class_2733;
      named getBlockRenderType Lnet/minecraft/block/Block;getBlockRenderType(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockRenderType;
    • withRotation

      public BlockState withRotation(BlockState state, BlockRotation rotation)
      Overrides:
      withRotation in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Lbhb;)Lblc;
      intermediary method_11556 Lnet/minecraft/class_197;method_11556(Lnet/minecraft/class_2232;Lnet/minecraft/class_2734;)Lnet/minecraft/class_2232;
      named withRotation Lnet/minecraft/block/Block;withRotation(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
    • withMirror

      public BlockState withMirror(BlockState state, BlockMirror mirror)
      Overrides:
      withMirror in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Lbfz;)Lblc;
      intermediary method_11555 Lnet/minecraft/class_197;method_11555(Lnet/minecraft/class_2232;Lnet/minecraft/class_2727;)Lnet/minecraft/class_2232;
      named withMirror Lnet/minecraft/block/Block;withMirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
    • appendProperties

      protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lble$a;)V
      intermediary method_16576 Lnet/minecraft/class_197;method_16576(Lnet/minecraft/class_2233$class_3757;)V
      named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
    • method_16563

      public BlockState method_16563(ItemPlacementContext itemPlacementContext)
      Overrides:
      method_16563 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lark;)Lblc;
      intermediary method_16563 Lnet/minecraft/class_197;method_16563(Lnet/minecraft/class_3544;)Lnet/minecraft/class_2232;
      named method_16563 Lnet/minecraft/block/Block;method_16563(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
    • method_14319

      private static void method_14319(World world, BlockPos blockPos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdm;a(Laxy;Lel;Leq;)V
      intermediary method_14319 Lnet/minecraft/class_1302;method_14319(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)V
      named method_14319 Lnet/minecraft/block/CommandBlock;method_14319(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)V