Class CommandBlockItem

All Implemented Interfaces:
ItemConvertible

public class CommandBlockItem extends BlockItem
Mappings:
Namespace Name
official btn
intermediary net/minecraft/class_1788
named net/minecraft/item/CommandBlockItem
  • Constructor Details

    • CommandBlockItem

      public CommandBlockItem(Block block, Item.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbsb;<init>(Lccr;Lbtt$a;)V
      intermediary <init> Lnet/minecraft/class_1747;<init>(Lnet/minecraft/class_2248;Lnet/minecraft/class_1792$class_1793;)V
      named <init> Lnet/minecraft/item/BlockItem;<init>(Lnet/minecraft/block/Block;Lnet/minecraft/item/Item$Settings;)V
  • Method Details

    • getPlacementState

      @Nullable protected @Nullable BlockState getPlacementState(ItemPlacementContext context)
      Overrides:
      getPlacementState in class BlockItem
      Mappings:
      Namespace Name Mixin selector
      official c Lbsb;c(Lbvx;)Lcnv;
      intermediary method_7707 Lnet/minecraft/class_1747;method_7707(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
      named getPlacementState Lnet/minecraft/item/BlockItem;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;