Package net.minecraft

Class class_7430

java.lang.Object
net.minecraft.item.Item
net.minecraft.class_7430
All Implemented Interfaces:
ItemConvertible

public class class_7430 extends Item
Mappings:
Namespace Name
official byb
intermediary net/minecraft/class_7430
named net/minecraft/class_7430
  • Field Details

    • field_39053

      private static final int field_39053
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbyb;b:I
      intermediary field_39053 Lnet/minecraft/class_7430;field_39053:I
      named field_39053 Lnet/minecraft/class_7430;field_39053:I
    • field_39052

      public static final String field_39052
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbyb;a:Ljava/lang/String;
      intermediary field_39052 Lnet/minecraft/class_7430;field_39052:Ljava/lang/String;
      named field_39052 Lnet/minecraft/class_7430;field_39052:Ljava/lang/String;
    • field_39054

      private static final int field_39054
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lbyb;c:I
      intermediary field_39054 Lnet/minecraft/class_7430;field_39054:I
      named field_39054 Lnet/minecraft/class_7430;field_39054:I
    • field_39055

      private static final int field_39055
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lbyb;d:I
      intermediary field_39055 Lnet/minecraft/class_7430;field_39055:I
      named field_39055 Lnet/minecraft/class_7430;field_39055:I
    • field_39056

      private static final int field_39056
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lbyb;e:I
      intermediary field_39056 Lnet/minecraft/class_7430;field_39056:I
      named field_39056 Lnet/minecraft/class_7430;field_39056:I
  • Constructor Details

    • class_7430

      public class_7430(Item.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbyh;<init>(Lbyh$a;)V
      intermediary <init> Lnet/minecraft/class_1792;<init>(Lnet/minecraft/class_1792$class_1793;)V
      named <init> Lnet/minecraft/item/Item;<init>(Lnet/minecraft/item/Item$Settings;)V
  • Method Details

    • appendTooltip

      public void appendTooltip(ItemStack stack, @Nullable @Nullable World world, List<Text> tooltip, TooltipContext context)
      Overrides:
      appendTooltip in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lbyh;a(Lbyl;Lcel;Ljava/util/List;Lbzz;)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_43558

      private static ItemStack method_43558(int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbyb;a(I)Lbyl;
      intermediary method_43558 Lnet/minecraft/class_7430;method_43558(I)Lnet/minecraft/class_1799;
      named method_43558 Lnet/minecraft/class_7430;method_43558(I)Lnet/minecraft/item/ItemStack;
    • method_43560

      public static ItemStack method_43560(GoatEntity goatEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbyb;a(Lbmm;)Lbyl;
      intermediary method_43560 Lnet/minecraft/class_7430;method_43560(Lnet/minecraft/class_6053;)Lnet/minecraft/class_1799;
      named method_43560 Lnet/minecraft/class_7430;method_43560(Lnet/minecraft/entity/passive/GoatEntity;)Lnet/minecraft/item/ItemStack;
    • method_43562

      public static void method_43562(ItemStack itemStack, AbstractRandom abstractRandom)
      Mappings:
      Namespace Name Mixin selector
      official a Lbyb;a(Lbyl;Lakt;)V
      intermediary method_43562 Lnet/minecraft/class_7430;method_43562(Lnet/minecraft/class_1799;Lnet/minecraft/class_5819;)V
      named method_43562 Lnet/minecraft/class_7430;method_43562(Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/random/AbstractRandom;)V
    • method_43561

      private static void method_43561(ItemStack itemStack, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbyb;a(Lbyl;I)V
      intermediary method_43561 Lnet/minecraft/class_7430;method_43561(Lnet/minecraft/class_1799;I)V
      named method_43561 Lnet/minecraft/class_7430;method_43561(Lnet/minecraft/item/ItemStack;I)V
    • appendStacks

      public void appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)
      Appends the stacks of this item shown in the item group to the list.
      Overrides:
      appendStacks in class Item
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbyh;a(Lbwz;Lhb;)V
      intermediary method_7850 Lnet/minecraft/class_1792;method_7850(Lnet/minecraft/class_1761;Lnet/minecraft/class_2371;)V
      named appendStacks Lnet/minecraft/item/Item;appendStacks(Lnet/minecraft/item/ItemGroup;Lnet/minecraft/util/collection/DefaultedList;)V
    • method_43559

      protected static int method_43559(AbstractRandom abstractRandom, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lbyb;a(Lakt;Z)I
      intermediary method_43559 Lnet/minecraft/class_7430;method_43559(Lnet/minecraft/class_5819;Z)I
      named method_43559 Lnet/minecraft/class_7430;method_43559(Lnet/minecraft/util/math/random/AbstractRandom;Z)I
    • use

      public TypedActionResult<ItemStack> use(World world, PlayerEntity user, Hand hand)
      Called when an item is used by a player. The use action, by default, is bound to the right mouse button.

      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 Item
      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 Lbyh;a(Lcel;Lbrs;Laya;)Layc;
      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;
    • getMaxUseTime

      public int getMaxUseTime(ItemStack stack)
      Returns the maximum use (right-click) time of this item, in ticks. Once a player has used an item for said number of ticks, they stop using it, and Item.finishUsing(net.minecraft.item.ItemStack, net.minecraft.world.World, net.minecraft.entity.LivingEntity) is called.
      Overrides:
      getMaxUseTime in class Item
      Returns:
      the maximum use (right-click) time of this item, in ticks
      Mappings:
      Namespace Name Mixin selector
      official b Lbyh;b(Lbyl;)I
      intermediary method_7881 Lnet/minecraft/class_1792;method_7881(Lnet/minecraft/class_1799;)I
      named getMaxUseTime Lnet/minecraft/item/Item;getMaxUseTime(Lnet/minecraft/item/ItemStack;)I
    • method_43564

      private int method_43564(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official d Lbyb;d(Lbyl;)I
      intermediary method_43564 Lnet/minecraft/class_7430;method_43564(Lnet/minecraft/class_1799;)I
      named method_43564 Lnet/minecraft/class_7430;method_43564(Lnet/minecraft/item/ItemStack;)I
    • getUseAction

      public UseAction getUseAction(ItemStack stack)
      Overrides:
      getUseAction in class Item
      Mappings:
      Namespace Name Mixin selector
      official c Lbyh;c(Lbyl;)Lcab;
      intermediary method_7853 Lnet/minecraft/class_1792;method_7853(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1839;
      named getUseAction Lnet/minecraft/item/Item;getUseAction(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/UseAction;
    • method_43563

      private static void method_43563(World world, PlayerEntity playerEntity, SoundEvent soundEvent)
      Mappings:
      Namespace Name Mixin selector
      official a Lbyb;a(Lcel;Lbrs;Laih;)V
      intermediary method_43563 Lnet/minecraft/class_7430;method_43563(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_3414;)V
      named method_43563 Lnet/minecraft/class_7430;method_43563(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/sound/SoundEvent;)V