Class PotionItem

java.lang.Object
net.minecraft.item.Item
net.minecraft.item.PotionItem

public class PotionItem extends Item
Mappings:
Namespace Name
official aca
intermediary net/minecraft/class_1080
named net/minecraft/item/PotionItem
  • Field Details

    • STATUS_EFFECTS_2

      private static final Map STATUS_EFFECTS_2
      Mappings:
      Namespace Name Mixin selector
      official b Laca;b:Ljava/util/Map;
      intermediary field_4384 Lnet/minecraft/class_1080;field_4384:Ljava/util/Map;
      named STATUS_EFFECTS_2 Lnet/minecraft/item/PotionItem;STATUS_EFFECTS_2:Ljava/util/Map;
    • field_4383

      private HashMap field_4383
      Mappings:
      Namespace Name Mixin selector
      official a Laca;a:Ljava/util/HashMap;
      intermediary field_4383 Lnet/minecraft/class_1080;field_4383:Ljava/util/HashMap;
      named field_4383 Lnet/minecraft/item/PotionItem;field_4383:Ljava/util/HashMap;
    • field_6205

      @Environment(CLIENT) private Texture field_6205
      Mappings:
      Namespace Name Mixin selector
      official c Laca;c:Lpr;
      intermediary field_6205 Lnet/minecraft/class_1080;field_6205:Lnet/minecraft/class_1557;
      named field_6205 Lnet/minecraft/item/PotionItem;field_6205:Lnet/minecraft/client/Texture;
    • field_6207

      @Environment(CLIENT) private Texture field_6207
      Mappings:
      Namespace Name Mixin selector
      official d Laca;d:Lpr;
      intermediary field_6207 Lnet/minecraft/class_1080;field_6207:Lnet/minecraft/class_1557;
      named field_6207 Lnet/minecraft/item/PotionItem;field_6207:Lnet/minecraft/client/Texture;
    • field_6206

      @Environment(CLIENT) private Texture field_6206
      Mappings:
      Namespace Name Mixin selector
      official m Laca;m:Lpr;
      intermediary field_6206 Lnet/minecraft/class_1080;field_6206:Lnet/minecraft/class_1557;
      named field_6206 Lnet/minecraft/item/PotionItem;field_6206:Lnet/minecraft/client/Texture;
  • Constructor Details

    • PotionItem

      public PotionItem()
      Mappings:
      Namespace Name Mixin selector
      official <init> Labm;<init>()V
      intermediary <init> Lnet/minecraft/class_1069;<init>()V
      named <init> Lnet/minecraft/item/Item;<init>()V
  • Method Details

    • method_3460

      public List method_3460(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official g Laca;g(Labo;)Ljava/util/List;
      intermediary method_3460 Lnet/minecraft/class_1080;method_3460(Lnet/minecraft/class_1071;)Ljava/util/List;
      named method_3460 Lnet/minecraft/item/PotionItem;method_3460(Lnet/minecraft/item/ItemStack;)Ljava/util/List;
    • method_3457

      public List method_3457(int int2)
      Mappings:
      Namespace Name Mixin selector
      official c Laca;c(I)Ljava/util/List;
      intermediary method_3457 Lnet/minecraft/class_1080;method_3457(I)Ljava/util/List;
      named method_3457 Lnet/minecraft/item/PotionItem;method_3457(I)Ljava/util/List;
    • onFinishUse

      public ItemStack onFinishUse(ItemStack stack, World world, PlayerEntity player)
      Overrides:
      onFinishUse in class Item
      Mappings:
      Namespace Name Mixin selector
      official b Labm;b(Labo;Lafm;Lxk;)Labo;
      intermediary method_3367 Lnet/minecraft/class_1069;method_3367(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Lnet/minecraft/class_988;)Lnet/minecraft/class_1071;
      named onFinishUse Lnet/minecraft/item/Item;onFinishUse(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
    • getMaxUseTime

      public int getMaxUseTime(ItemStack stack)
      Overrides:
      getMaxUseTime in class Item
      Mappings:
      Namespace Name Mixin selector
      official d_ Labm;d_(Labo;)I
      intermediary method_3350 Lnet/minecraft/class_1069;method_3350(Lnet/minecraft/class_1071;)I
      named getMaxUseTime Lnet/minecraft/item/Item;getMaxUseTime(Lnet/minecraft/item/ItemStack;)I
    • getUseAction

      public UseAction getUseAction(ItemStack stack)
      Returns the UseAction for an item when the item is used. Used by food, potions, bows, etc.
      Overrides:
      getUseAction in class Item
      Parameters:
      stack - The ItemStack that was used
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Labm;d(Labo;)Lact;
      intermediary method_3366 Lnet/minecraft/class_1069;method_3366(Lnet/minecraft/class_1071;)Lnet/minecraft/class_1099;
      named getUseAction Lnet/minecraft/item/Item;getUseAction(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/UseAction;
    • onStartUse

      public ItemStack onStartUse(ItemStack stack, World world, PlayerEntity player)
      Overrides:
      onStartUse in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Labm;a(Labo;Lafm;Lxk;)Labo;
      intermediary method_3358 Lnet/minecraft/class_1069;method_3358(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Lnet/minecraft/class_988;)Lnet/minecraft/class_1071;
      named onStartUse Lnet/minecraft/item/Item;onStartUse(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
    • method_3355

      public boolean method_3355(ItemStack itemStack, PlayerEntity playerEntity, World world, int int2, int int3, int int4, int int5, float float2, float float3, float float4)
      Overrides:
      method_3355 in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Labm;a(Labo;Lxk;Lafm;IIIIFFF)Z
      intermediary method_3355 Lnet/minecraft/class_1069;method_3355(Lnet/minecraft/class_1071;Lnet/minecraft/class_988;Lnet/minecraft/class_1150;IIIIFFF)Z
      named method_3355 Lnet/minecraft/item/Item;method_3355(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;IIIIFFF)Z
    • method_3343

      @Environment(CLIENT) public Texture method_3343(int int2)
      Overrides:
      method_3343 in class Item
      Mappings:
      Namespace Name Mixin selector
      official b_ Labm;b_(I)Lpr;
      intermediary method_3343 Lnet/minecraft/class_1069;method_3343(I)Lnet/minecraft/class_1557;
      named method_3343 Lnet/minecraft/item/Item;method_3343(I)Lnet/minecraft/client/Texture;
    • method_3369

      @Environment(CLIENT) public Texture method_3369(int int2, int int3)
      Overrides:
      method_3369 in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Labm;a(II)Lpr;
      intermediary method_3369 Lnet/minecraft/class_1069;method_3369(II)Lnet/minecraft/class_1557;
      named method_3369 Lnet/minecraft/item/Item;method_3369(II)Lnet/minecraft/client/Texture;
    • method_3458

      public static boolean method_3458(int int2)
      Mappings:
      Namespace Name Mixin selector
      official g Laca;g(I)Z
      intermediary method_3458 Lnet/minecraft/class_1080;method_3458(I)Z
      named method_3458 Lnet/minecraft/item/PotionItem;method_3458(I)Z
    • method_4629

      @Environment(CLIENT) public int method_4629(int int2)
      Mappings:
      Namespace Name Mixin selector
      official h Laca;h(I)I
      intermediary method_4629 Lnet/minecraft/class_1080;method_4629(I)I
      named method_4629 Lnet/minecraft/item/PotionItem;method_4629(I)I
    • getDisplayColor

      @Environment(CLIENT) public int getDisplayColor(ItemStack stack, int color)
      Overrides:
      getDisplayColor in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Labm;a(Labo;I)I
      intermediary method_3344 Lnet/minecraft/class_1069;method_3344(Lnet/minecraft/class_1071;I)I
      named getDisplayColor Lnet/minecraft/item/Item;getDisplayColor(Lnet/minecraft/item/ItemStack;I)I
    • method_3397

      @Environment(CLIENT) public boolean method_3397()
      Overrides:
      method_3397 in class Item
      Mappings:
      Namespace Name Mixin selector
      official b Labm;b()Z
      intermediary method_3397 Lnet/minecraft/class_1069;method_3397()Z
      named method_3397 Lnet/minecraft/item/Item;method_3397()Z
    • method_3459

      @Environment(CLIENT) public boolean method_3459(int int2)
      Mappings:
      Namespace Name Mixin selector
      official i Laca;i(I)Z
      intermediary method_3459 Lnet/minecraft/class_1080;method_3459(I)Z
      named method_3459 Lnet/minecraft/item/PotionItem;method_3459(I)Z
    • getDisplayName

      public String getDisplayName(ItemStack stack)
      Overrides:
      getDisplayName in class Item
      Mappings:
      Namespace Name Mixin selector
      official n Labm;n(Labo;)Ljava/lang/String;
      intermediary method_3383 Lnet/minecraft/class_1069;method_3383(Lnet/minecraft/class_1071;)Ljava/lang/String;
      named getDisplayName Lnet/minecraft/item/Item;getDisplayName(Lnet/minecraft/item/ItemStack;)Ljava/lang/String;
    • appendTooltip

      @Environment(CLIENT) public void appendTooltip(ItemStack stack, PlayerEntity player, List lines, boolean advanced)
      Overrides:
      appendTooltip in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Labm;a(Labo;Lxk;Ljava/util/List;Z)V
      intermediary method_3352 Lnet/minecraft/class_1069;method_3352(Lnet/minecraft/class_1071;Lnet/minecraft/class_988;Ljava/util/List;Z)V
      named appendTooltip Lnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Ljava/util/List;Z)V
    • hasEnchantmentGlint

      @Environment(CLIENT) public boolean hasEnchantmentGlint(ItemStack stack)
      Returns whether the current item has an enchantment glint. Used by enchanted golden apples and enchanted items.
      Overrides:
      hasEnchantmentGlint in class Item
      See Also:
      • net.minecraft.item.GoldenAppleItem
      Mappings:
      Namespace Name Mixin selector
      official e Labm;e(Labo;)Z
      intermediary method_3374 Lnet/minecraft/class_1069;method_3374(Lnet/minecraft/class_1071;)Z
      named hasEnchantmentGlint Lnet/minecraft/item/Item;hasEnchantmentGlint(Lnet/minecraft/item/ItemStack;)Z
    • appendItemStacks

      @Environment(CLIENT) public void appendItemStacks(Item item, ItemGroup group, List list)
      Registers an item's sub items
      Overrides:
      appendItemStacks in class Item
      Parameters:
      item - The Item instance
      group - The ItemGroup
      list - The list of sub items
      Mappings:
      Namespace Name Mixin selector
      official a Labm;a(Labm;Laae;Ljava/util/List;)V
      intermediary method_3345 Lnet/minecraft/class_1069;method_3345(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Ljava/util/List;)V
      named appendItemStacks Lnet/minecraft/item/Item;appendItemStacks(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Ljava/util/List;)V
    • method_5462

      @Environment(CLIENT) public void method_5462(TextureRegistry textureRegistry)
      Overrides:
      method_5462 in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Labm;a(Lps;)V
      intermediary method_5462 Lnet/minecraft/class_1069;method_5462(Lnet/minecraft/class_1558;)V
      named method_5462 Lnet/minecraft/item/Item;method_5462(Lnet/minecraft/client/TextureRegistry;)V
    • method_5466

      @Environment(CLIENT) public static Texture method_5466(String string)
      Mappings:
      Namespace Name Mixin selector
      official b Laca;b(Ljava/lang/String;)Lpr;
      intermediary method_5466 Lnet/minecraft/class_1080;method_5466(Ljava/lang/String;)Lnet/minecraft/class_1557;
      named method_5466 Lnet/minecraft/item/PotionItem;method_5466(Ljava/lang/String;)Lnet/minecraft/client/Texture;