Class SkullItem

All Implemented Interfaces:
ItemConvertible, ToggleableFeature

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

    • SKULL_OWNER_KEY

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

    • SkullItem

      public SkullItem(Block block, Block wallBlock, Item.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcgj;<init>(Lcpi;Lcpi;Lcfq$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/SkullItem;<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 Lcfq;m(Lcfv;)Ltj;
      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 Lcfq;b(Lre;)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