Class PlayerHeadItem

All Implemented Interfaces:
ItemConvertible, ToggleableFeature

public class PlayerHeadItem extends VerticallyAttachableBlockItem
Mappings:
Namespace Name
official cnm
intermediary net/minecraft/class_1809
named net/minecraft/item/PlayerHeadItem
  • Field Details

    • SKULL_OWNER_KEY

      public static final String SKULL_OWNER_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lcnm;c:Ljava/lang/String;
      intermediary field_30916 Lnet/minecraft/class_1809;field_30916:Ljava/lang/String;
      named SKULL_OWNER_KEY Lnet/minecraft/item/PlayerHeadItem;SKULL_OWNER_KEY:Ljava/lang/String;
  • Constructor Details

    • PlayerHeadItem

      public PlayerHeadItem(Block block, Block wallBlock, Item.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcnm;<init>(Lcwq;Lcwq;Lcmt$a;)V
      intermediary <init> Lnet/minecraft/class_1809;<init>(Lnet/minecraft/class_2248;Lnet/minecraft/class_2248;Lnet/minecraft/class_1792$class_1793;)V
      named <init> Lnet/minecraft/item/PlayerHeadItem;<init>(Lnet/minecraft/block/Block;Lnet/minecraft/block/Block;Lnet/minecraft/item/Item$Settings;)V
  • Method Details

    • getName

      public Text getName(ItemStack stack)
      Overrides:
      getName in class Item
      Mappings:
      Namespace Name Mixin selector
      official m Lcmt;m(Lcmy;)Lvf;
      intermediary method_7864 Lnet/minecraft/class_1792;method_7864(Lnet/minecraft/class_1799;)Lnet/minecraft/class_2561;
      named getName Lnet/minecraft/item/Item;getName(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/text/Text;
    • postProcessNbt

      public void postProcessNbt(NbtCompound nbt)
      Processes the NBT applied to an item stack of this item.

      This is only used in vanilla to process player head NBT data.

      Overrides:
      postProcessNbt in class Item
      Mappings:
      Namespace Name Mixin selector
      official b Lcmt;b(Lsn;)V
      intermediary method_7860 Lnet/minecraft/class_1792;method_7860(Lnet/minecraft/class_2487;)V
      named postProcessNbt Lnet/minecraft/item/Item;postProcessNbt(Lnet/minecraft/nbt/NbtCompound;)V