Package net.minecraft

Class class_9527

java.lang.Object
net.minecraft.item.Item
net.minecraft.class_9527
All Implemented Interfaces:
ItemConvertible, ToggleableFeature

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

    • field_50588

      public static final int field_50588
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lctx;a:I
      intermediary field_50588 Lnet/minecraft/class_9527;field_50588:I
      named field_50588 Lnet/minecraft/class_9527;field_50588:I
    • field_50589

      public static final int field_50589
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lctx;b:I
      intermediary field_50589 Lnet/minecraft/class_9527;field_50589:I
      named field_50589 Lnet/minecraft/class_9527;field_50589:I
    • field_50590

      public static final int field_50590
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lctx;c:I
      intermediary field_50590 Lnet/minecraft/class_9527;field_50590:I
      named field_50590 Lnet/minecraft/class_9527;field_50590:I
  • Constructor Details

    • class_9527

      public class_9527(Item.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcuc;<init>(Lcuc$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

    • finishUsing

      public ItemStack finishUsing(ItemStack stack, World world, LivingEntity user)
      Called when an entity finishes using the item, such as eating food or drinking a potion. This method handles eating food by default.

      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.

      user might not be a player in some cases. For example, this occurs when a fox eats food or when a wandering trader drinks milk.

      Overrides:
      finishUsing in class Item
      Returns:
      the new item stack after using the item
      Mappings:
      Namespace Name Mixin selector
      official a Lcuc;a(Lcuh;Ldca;Lbso;)Lcuh;
      intermediary method_7861 Lnet/minecraft/class_1792;method_7861(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;)Lnet/minecraft/class_1799;
      named finishUsing Lnet/minecraft/item/Item;finishUsing(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/item/ItemStack;
    • inventoryTick

      public void inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected)
      Called on both the client and the server every tick if the item is in the player's inventory.

      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:
      inventoryTick in class Item
      Parameters:
      entity - the entity holding the item; usually a player
      selected - whether the item is in the selected hotbar slot
      Mappings:
      Namespace Name Mixin selector
      official a Lcuc;a(Lcuh;Ldca;Lbrv;IZ)V
      intermediary method_7888 Lnet/minecraft/class_1792;method_7888(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;IZ)V
      named inventoryTick Lnet/minecraft/item/Item;inventoryTick(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;IZ)V