Class AnimalArmorItem

All Implemented Interfaces:
Equipment, ItemConvertible, ToggleableFeature

public class AnimalArmorItem extends ArmorItem
Mappings:
Namespace Name
named net/minecraft/item/AnimalArmorItem
intermediary net/minecraft/class_4059
official csf
  • Field Details

    • entityTexture

      private final Identifier entityTexture
      Mappings:
      Namespace Name Mixin selector
      named entityTexture Lnet/minecraft/item/AnimalArmorItem;entityTexture:Lnet/minecraft/util/Identifier;
      intermediary field_47823 Lnet/minecraft/class_4059;field_47823:Lnet/minecraft/class_2960;
      official j Lcsf;j:Lalf;
    • overlayTexture

      @Nullable private final @Nullable Identifier overlayTexture
      Mappings:
      Namespace Name Mixin selector
      named overlayTexture Lnet/minecraft/item/AnimalArmorItem;overlayTexture:Lnet/minecraft/util/Identifier;
      intermediary field_49255 Lnet/minecraft/class_4059;field_49255:Lnet/minecraft/class_2960;
      official k Lcsf;k:Lalf;
    • type

      private final AnimalArmorItem.Type type
      Mappings:
      Namespace Name Mixin selector
      named type Lnet/minecraft/item/AnimalArmorItem;type:Lnet/minecraft/item/AnimalArmorItem$Type;
      intermediary field_47824 Lnet/minecraft/class_4059;field_47824:Lnet/minecraft/class_4059$class_9076;
      official l Lcsf;l:Lcsf$a;
  • Constructor Details

    • AnimalArmorItem

      public AnimalArmorItem(RegistryEntry<ArmorMaterial> material, AnimalArmorItem.Type type, boolean hasOverlay, Item.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/item/AnimalArmorItem;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/item/AnimalArmorItem$Type;ZLnet/minecraft/item/Item$Settings;)V
      intermediary <init> Lnet/minecraft/class_4059;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_4059$class_9076;ZLnet/minecraft/class_1792$class_1793;)V
      official <init> Lcsf;<init>(Lji;Lcsf$a;ZLcum$a;)V
  • Method Details

    • getEntityTexture

      public Identifier getEntityTexture()
      Mappings:
      Namespace Name Mixin selector
      named getEntityTexture Lnet/minecraft/item/AnimalArmorItem;getEntityTexture()Lnet/minecraft/util/Identifier;
      intermediary method_18454 Lnet/minecraft/class_4059;method_18454()Lnet/minecraft/class_2960;
      official b Lcsf;b()Lalf;
    • getOverlayTexture

      @Nullable public @Nullable Identifier getOverlayTexture()
      Mappings:
      Namespace Name Mixin selector
      named getOverlayTexture Lnet/minecraft/item/AnimalArmorItem;getOverlayTexture()Lnet/minecraft/util/Identifier;
      intermediary method_57335 Lnet/minecraft/class_4059;method_57335()Lnet/minecraft/class_2960;
      official c Lcsf;c()Lalf;
    • getType

      public AnimalArmorItem.Type getType()
      Overrides:
      getType in class ArmorItem
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/item/AnimalArmorItem;getType()Lnet/minecraft/item/AnimalArmorItem$Type;
      intermediary method_55756 Lnet/minecraft/class_4059;method_55756()Lnet/minecraft/class_4059$class_9076;
      official d Lcsf;d()Lcsf$a;
    • getBreakSound

      public SoundEvent getBreakSound()
      Overrides:
      getBreakSound in class Item
      Mappings:
      Namespace Name Mixin selector
      named getBreakSound Lnet/minecraft/item/Item;getBreakSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_57336 Lnet/minecraft/class_1792;method_57336()Lnet/minecraft/class_3414;
      official e Lcum;e()Lavz;
    • isEnchantable

      public boolean isEnchantable(ItemStack stack)
      Returns whether the given ItemStack is enchantable.

      By default, ItemStacks are enchantable if their max stack count is 1 and they can be damaged.

      Overrides:
      isEnchantable in class Item
      Returns:
      whether the given ItemStack is enchantable
      Mappings:
      Namespace Name Mixin selector
      named isEnchantable Lnet/minecraft/item/Item;isEnchantable(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_7870 Lnet/minecraft/class_1792;method_7870(Lnet/minecraft/class_1799;)Z
      official a Lcum;a(Lcur;)Z