Class BlockItem

java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BlockItem
Direct Known Subclasses:
BannerItem, class_3058, GrassBlockItem, LeavesItem, SnowLayerItem, StickyPistonBlockItem, StoneSlabItem, VariantBlockItem, WoolItem

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

    • block

      protected final Block block
      Mappings:
      Namespace Name Mixin selector
      official a Ladv;a:Lalu;
      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

    • BlockItem

      public BlockItem(Block block)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladv;<init>(Lalu;)V
      intermediary <init> Lnet/minecraft/class_1096;<init>(Lnet/minecraft/class_197;)V
      named <init> Lnet/minecraft/item/BlockItem;<init>(Lnet/minecraft/block/Block;)V
  • Method Details

    • use

      public ActionResult use(PlayerEntity player, World world, BlockPos pos, Hand hand, Direction direction, float x, float y, float z)
      Overrides:
      use in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Laay;Lajs;Lco;Lri;Lcv;FFF)Lrk;
      intermediary method_3355 Lnet/minecraft/class_1069;method_3355(Lnet/minecraft/class_988;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2961;Lnet/minecraft/class_1354;FFF)Lnet/minecraft/class_2962;
      named use Lnet/minecraft/item/Item;use(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/Hand;Lnet/minecraft/util/math/Direction;FFF)Lnet/minecraft/util/ActionResult;
    • setBlockEntityNbt

      public static boolean setBlockEntityNbt(World world, @Nullable PlayerEntity player, BlockPos pos, ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official a Ladv;a(Lajs;Laay;Lco;Lafj;)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
    • method_11269

      @Environment(CLIENT) public boolean method_11269(World world, BlockPos blockPos, Direction direction, PlayerEntity playerEntity, ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official a Ladv;a(Lajs;Lco;Lcv;Laay;Lafj;)Z
      intermediary method_11269 Lnet/minecraft/class_1096;method_11269(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;Lnet/minecraft/class_988;Lnet/minecraft/class_1071;)Z
      named method_11269 Lnet/minecraft/item/BlockItem;method_11269(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Z
    • getTranslationKey

      public String getTranslationKey(ItemStack stack)
      Overrides:
      getTranslationKey in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Lafj;)Ljava/lang/String;
      intermediary method_3371 Lnet/minecraft/class_1069;method_3371(Lnet/minecraft/class_1071;)Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/item/Item;getTranslationKey(Lnet/minecraft/item/ItemStack;)Ljava/lang/String;
    • 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 Lafh;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;
    • getItemGroup

      @Environment(CLIENT) public ItemGroup getItemGroup()
      Returns the itemgroup that the item is in
      Overrides:
      getItemGroup in class Item
      Mappings:
      Namespace Name Mixin selector
      official b Lafh;b()Laej;
      intermediary method_3398 Lnet/minecraft/class_1069;method_3398()Lnet/minecraft/class_1041;
      named getItemGroup Lnet/minecraft/item/Item;getItemGroup()Lnet/minecraft/item/itemgroup/ItemGroup;
    • method_13648

      @Environment(CLIENT) public void method_13648(Item item, ItemGroup itemGroup, DefaultedList<ItemStack> defaultedList)
      Overrides:
      method_13648 in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Lafh;Laej;Ldd;)V
      intermediary method_13648 Lnet/minecraft/class_1069;method_13648(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Lnet/minecraft/class_3114;)V
      named method_13648 Lnet/minecraft/item/Item;method_13648(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Lnet/minecraft/util/collection/DefaultedList;)V
    • appendTooltip

      @Environment(CLIENT) public void appendTooltip(ItemStack stack, PlayerEntity player, List<String> lines, boolean advanced)
      Overrides:
      appendTooltip in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Lafj;Laay;Ljava/util/List;Z)V
      intermediary method_3352 Lnet/minecraft/class_1069;method_3352(Lnet/minecraft/class_1071;Lnet/minecraft/class_988;Ljava/util/List;Z)V
      named appendTooltip Lnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Ljava/util/List;Z)V
    • getBlock

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