Class BlockItem

java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BlockItem
All Implemented Interfaces:
Itemable
Direct Known Subclasses:
BedItem, class_3548, class_3553, class_3559, class_3560, LilyPadItem

public class BlockItem extends Item
Mappings:
Namespace Name
official arj
intermediary net/minecraft/class_1096
named net/minecraft/item/BlockItem
  • Field Details

    • block

      @Deprecated private final Block block
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official a Larj;a:Lbcs;
      intermediary field_6952 Lnet/minecraft/class_1096;field_6952:Lnet/minecraft/class_197;
      named block Lnet/minecraft/item/BlockItem;block:Lnet/minecraft/block/Block;
  • Constructor Details

  • Method Details

    • useOnBlock

      public ActionResult useOnBlock(ItemUsageContext itemUsageContext)
      Overrides:
      useOnBlock in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lata;a(Laup;)Ladm;
      intermediary method_16071 Lnet/minecraft/class_1069;method_16071(Lnet/minecraft/class_3565;)Lnet/minecraft/class_2962;
      named useOnBlock Lnet/minecraft/item/Item;useOnBlock(Lnet/minecraft/item/ItemUsageContext;)Lnet/minecraft/util/ActionResult;
    • method_16012

      public ActionResult method_16012(ItemPlacementContext itemPlacementContext)
      Mappings:
      Namespace Name Mixin selector
      official a Larj;a(Lark;)Ladm;
      intermediary method_16012 Lnet/minecraft/class_1096;method_16012(Lnet/minecraft/class_3544;)Lnet/minecraft/class_2962;
      named method_16012 Lnet/minecraft/item/BlockItem;method_16012(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/util/ActionResult;
    • method_16014

      protected boolean method_16014(BlockPos blockPos, World world, @Nullable PlayerEntity playerEntity, ItemStack itemStack, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Larj;a(Lel;Laxy;Laog;Late;Lblc;)Z
      intermediary method_16014 Lnet/minecraft/class_1096;method_16014(Lnet/minecraft/class_2552;Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_1071;Lnet/minecraft/class_2232;)Z
      named method_16014 Lnet/minecraft/item/BlockItem;method_16014(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/block/BlockState;)Z
    • method_16016

      @Nullable protected BlockState method_16016(ItemPlacementContext itemPlacementContext)
      Mappings:
      Namespace Name Mixin selector
      official b Larj;b(Lark;)Lblc;
      intermediary method_16016 Lnet/minecraft/class_1096;method_16016(Lnet/minecraft/class_3544;)Lnet/minecraft/class_2232;
      named method_16016 Lnet/minecraft/item/BlockItem;method_16016(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
    • method_16017

      protected boolean method_16017(ItemPlacementContext itemPlacementContext, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official b Larj;b(Lark;Lblc;)Z
      intermediary method_16017 Lnet/minecraft/class_1096;method_16017(Lnet/minecraft/class_3544;Lnet/minecraft/class_2232;)Z
      named method_16017 Lnet/minecraft/item/BlockItem;method_16017(Lnet/minecraft/item/ItemPlacementContext;Lnet/minecraft/block/BlockState;)Z
    • method_16013

      protected boolean method_16013(ItemPlacementContext itemPlacementContext, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Larj;a(Lark;Lblc;)Z
      intermediary method_16013 Lnet/minecraft/class_1096;method_16013(Lnet/minecraft/class_3544;Lnet/minecraft/class_2232;)Z
      named method_16013 Lnet/minecraft/item/BlockItem;method_16013(Lnet/minecraft/item/ItemPlacementContext;Lnet/minecraft/block/BlockState;)Z
    • setBlockEntityNbt

      public static boolean setBlockEntityNbt(World world, @Nullable PlayerEntity player, BlockPos pos, ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official a Larj;a(Laxy;Laog;Lel;Late;)Z
      intermediary method_11270 Lnet/minecraft/class_1096;method_11270(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_2552;Lnet/minecraft/class_1071;)Z
      named setBlockEntityNbt Lnet/minecraft/item/BlockItem;setBlockEntityNbt(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)Z
    • getTranslationKey

      public String getTranslationKey()
      Returns the translation key of the current Item
      Overrides:
      getTranslationKey in class Item
      Returns:
      Translation key
      Mappings:
      Namespace Name Mixin selector
      official a Lata;a()Ljava/lang/String;
      intermediary method_3342 Lnet/minecraft/class_1069;method_3342()Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/item/Item;getTranslationKey()Ljava/lang/String;
    • appendToItemGroup

      public void appendToItemGroup(ItemGroup group, DefaultedList<ItemStack> stacks)
      Overrides:
      appendToItemGroup in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lata;a(Lary;Lez;)V
      intermediary method_14233 Lnet/minecraft/class_1069;method_14233(Lnet/minecraft/class_1041;Lnet/minecraft/class_3114;)V
      named appendToItemGroup Lnet/minecraft/item/Item;appendToItemGroup(Lnet/minecraft/item/itemgroup/ItemGroup;Lnet/minecraft/util/collection/DefaultedList;)V
    • appendTooltips

      @Environment(CLIENT) public void appendTooltips(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext tooltipContext)
      Overrides:
      appendTooltips in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lata;a(Late;Laxy;Ljava/util/List;Laum;)V
      intermediary method_14234 Lnet/minecraft/class_1069;method_14234(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Ljava/util/List;Lnet/minecraft/class_3191;)V
      named appendTooltips Lnet/minecraft/item/Item;appendTooltips(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Ljava/util/List;Lnet/minecraft/client/TooltipContext;)V
    • getBlock

      public Block getBlock()
      Mappings:
      Namespace Name Mixin selector
      official d Larj;d()Lbcs;
      intermediary method_11271 Lnet/minecraft/class_1096;method_11271()Lnet/minecraft/class_197;
      named getBlock Lnet/minecraft/item/BlockItem;getBlock()Lnet/minecraft/block/Block;
    • method_16015

      public void method_16015(Map<Block,Item> map, Item item)
      Mappings:
      Namespace Name Mixin selector
      official a Larj;a(Ljava/util/Map;Lata;)V
      intermediary method_16015 Lnet/minecraft/class_1096;method_16015(Ljava/util/Map;Lnet/minecraft/class_1069;)V
      named method_16015 Lnet/minecraft/item/BlockItem;method_16015(Ljava/util/Map;Lnet/minecraft/item/Item;)V