Package net.minecraft

Class class_9530

All Implemented Interfaces:
Equipment, ItemConvertible, ToggleableFeature

public class class_9530 extends ArmorItem
Mappings:
Namespace Name
official cuz
intermediary net/minecraft/class_9530
named net/minecraft/class_9530
  • Field Details

    • field_50701

      private static final Style field_50701
      Mappings:
      Namespace Name Mixin selector
      official j Lcuz;j:Lyb;
      intermediary field_50701 Lnet/minecraft/class_9530;field_50701:Lnet/minecraft/class_2583;
      named field_50701 Lnet/minecraft/class_9530;field_50701:Lnet/minecraft/text/Style;
    • field_50702

      private static final int field_50702
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Lcuz;k:I
      intermediary field_50702 Lnet/minecraft/class_9530;field_50702:I
      named field_50702 Lnet/minecraft/class_9530;field_50702:I
  • Constructor Details

    • class_9530

      public class_9530(RegistryEntry<ArmorMaterial> material, ArmorItem.Type type, Item.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcrt;<init>(Lja;Lcrt$a;Lcuc$a;)V
      intermediary <init> Lnet/minecraft/class_1738;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_1738$class_8051;Lnet/minecraft/class_1792$class_1793;)V
      named <init> Lnet/minecraft/item/ArmorItem;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/item/ArmorItem$Type;Lnet/minecraft/item/Item$Settings;)V
  • Method Details

    • appendTooltip

      public void appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context)
      Called by the client to append tooltips to an item. Subclasses can override this and add custom tooltips to tooltip list.
      Overrides:
      appendTooltip in class Item
      Parameters:
      tooltip - the list of tooltips to show
      Mappings:
      Namespace Name Mixin selector
      official a Lcuc;a(Lcuh;Ldca;Ljava/util/List;Lcwi;)V
      intermediary method_7851 Lnet/minecraft/class_1792;method_7851(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Ljava/util/List;Lnet/minecraft/class_1836;)V
      named appendTooltip Lnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Ljava/util/List;Lnet/minecraft/client/item/TooltipContext;)V
    • method_59036

      public void method_59036(ItemStack itemStack, World world, BlockPos blockPos, Inventory inventory)
      Overrides:
      method_59036 in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lcuc;a(Lcuh;Ldca;Lir;Lbpt;)V
      intermediary method_59036 Lnet/minecraft/class_1792;method_59036(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1263;)V
      named method_59036 Lnet/minecraft/item/Item;method_59036(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/inventory/Inventory;)V
    • method_59053

      private static Optional<MutableText> method_59053(int int2, PlayerEntity playerEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lcuz;a(ILcly;)Ljava/util/Optional;
      intermediary method_59053 Lnet/minecraft/class_9530;method_59053(ILnet/minecraft/class_1657;)Ljava/util/Optional;
      named method_59053 Lnet/minecraft/class_9530;method_59053(ILnet/minecraft/entity/player/PlayerEntity;)Ljava/util/Optional;
    • use

      public TypedActionResult<ItemStack> use(World world, PlayerEntity user, Hand hand)
      Called when the player uses (or starts using) the item. The use action, by default, is bound to the right mouse button. This method checks the player's hunger when the item is a food, and will pass in all other cases by default.

      If the item can be used for multiple ticks, then this will only be called when the player starts using it. After that, Item.usageTick(net.minecraft.world.World, net.minecraft.entity.LivingEntity, net.minecraft.item.ItemStack, int) is called every tick until the player finishes using the item.

      This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using world.isClient().

      Overrides:
      use in class ArmorItem
      Parameters:
      world - the world the item was used in
      user - the player who used the item
      hand - the hand used
      Returns:
      a typed action result that specifies whether using the item was successful. The action result contains the new item stack that the player's hand will be set to.
      Mappings:
      Namespace Name Mixin selector
      official a Lcuc;a(Ldca;Lcly;Lbpz;)Lbqb;
      intermediary method_7836 Lnet/minecraft/class_1792;method_7836(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1271;
      named use Lnet/minecraft/item/Item;use(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/TypedActionResult;