Package net.minecraft.item
Class PotionItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.PotionItem
- Mappings:
Namespace Name official acaintermediary net/minecraft/class_1080named net/minecraft/item/PotionItem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate HashMapprivate Textureprivate Textureprivate Textureprivate static final MapFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, field_6201, field_6941, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendItemStacks(Item item, ItemGroup group, List list) Registers an item's sub itemsvoidappendTooltip(ItemStack stack, PlayerEntity player, List lines, boolean advanced) intgetDisplayColor(ItemStack stack, int color) getDisplayName(ItemStack stack) intgetMaxUseTime(ItemStack stack) getUseAction(ItemStack stack) Returns the UseAction for an item when the item is used.booleanhasEnchantmentGlint(ItemStack stack) Returns whether the current item has an enchantment glint.method_3343(int int2) booleanmethod_3355(ItemStack itemStack, PlayerEntity playerEntity, World world, int int2, int int3, int int4, int int5, float float2, float float3, float float4) method_3369(int int2, int int3) booleanmethod_3457(int int2) static booleanmethod_3458(int int2) booleanmethod_3459(int int2) method_3460(ItemStack itemStack) intmethod_4629(int int2) voidmethod_5462(TextureRegistry textureRegistry) static Texturemethod_5466(String string) onFinishUse(ItemStack stack, World world, PlayerEntity player) onStartUse(ItemStack stack, World world, PlayerEntity player) Methods inherited from class net.minecraft.item.Item
byRawId, canRepair, canUseOnEntity, fromBlock, getAttributeModifierMap, getEnchantability, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMeta, getMiningSpeedMultiplier, getRarity, getRawId, getRecipeRemainder, getStatusEffectString, getTranslationKey, getTranslationKey, hasStatusEffectString, hasSubTypes, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, method_3356, method_3378, method_3380, method_5463, method_6324, onCraft, onEntityHit, onHit, onUseStopped, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setStatusEffectString, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncNbtToClient
-
Field Details
-
STATUS_EFFECTS_2
- Mappings:
Namespace Name Mixin selector official bLaca;b:Ljava/util/Map;intermediary field_4384Lnet/minecraft/class_1080;field_4384:Ljava/util/Map;named STATUS_EFFECTS_2Lnet/minecraft/item/PotionItem;STATUS_EFFECTS_2:Ljava/util/Map;
-
field_4383
- Mappings:
Namespace Name Mixin selector official aLaca;a:Ljava/util/HashMap;intermediary field_4383Lnet/minecraft/class_1080;field_4383:Ljava/util/HashMap;named field_4383Lnet/minecraft/item/PotionItem;field_4383:Ljava/util/HashMap;
-
field_6205
- Mappings:
Namespace Name Mixin selector official cLaca;c:Lpr;intermediary field_6205Lnet/minecraft/class_1080;field_6205:Lnet/minecraft/class_1557;named field_6205Lnet/minecraft/item/PotionItem;field_6205:Lnet/minecraft/client/Texture;
-
field_6207
- Mappings:
Namespace Name Mixin selector official dLaca;d:Lpr;intermediary field_6207Lnet/minecraft/class_1080;field_6207:Lnet/minecraft/class_1557;named field_6207Lnet/minecraft/item/PotionItem;field_6207:Lnet/minecraft/client/Texture;
-
field_6206
- Mappings:
Namespace Name Mixin selector official mLaca;m:Lpr;intermediary field_6206Lnet/minecraft/class_1080;field_6206:Lnet/minecraft/class_1557;named field_6206Lnet/minecraft/item/PotionItem;field_6206:Lnet/minecraft/client/Texture;
-
-
Constructor Details
-
PotionItem
public PotionItem()- Mappings:
Namespace Name Mixin selector official <init>Labm;<init>()Vintermediary <init>Lnet/minecraft/class_1069;<init>()Vnamed <init>Lnet/minecraft/item/Item;<init>()V
-
-
Method Details
-
method_3460
- Mappings:
Namespace Name Mixin selector official gLaca;g(Labo;)Ljava/util/List;intermediary method_3460Lnet/minecraft/class_1080;method_3460(Lnet/minecraft/class_1071;)Ljava/util/List;named method_3460Lnet/minecraft/item/PotionItem;method_3460(Lnet/minecraft/item/ItemStack;)Ljava/util/List;
-
method_3457
- Mappings:
Namespace Name Mixin selector official cLaca;c(I)Ljava/util/List;intermediary method_3457Lnet/minecraft/class_1080;method_3457(I)Ljava/util/List;named method_3457Lnet/minecraft/item/PotionItem;method_3457(I)Ljava/util/List;
-
onFinishUse
- Overrides:
onFinishUsein classItem- Mappings:
Namespace Name Mixin selector official bLabm;b(Labo;Lafm;Lxk;)Labo;intermediary method_3367Lnet/minecraft/class_1069;method_3367(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Lnet/minecraft/class_988;)Lnet/minecraft/class_1071;named onFinishUseLnet/minecraft/item/Item;onFinishUse(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
-
getMaxUseTime
- Overrides:
getMaxUseTimein classItem- Mappings:
Namespace Name Mixin selector official d_Labm;d_(Labo;)Iintermediary method_3350Lnet/minecraft/class_1069;method_3350(Lnet/minecraft/class_1071;)Inamed getMaxUseTimeLnet/minecraft/item/Item;getMaxUseTime(Lnet/minecraft/item/ItemStack;)I
-
getUseAction
Returns the UseAction for an item when the item is used. Used by food, potions, bows, etc.- Overrides:
getUseActionin classItem- Parameters:
stack- The ItemStack that was used- See Also:
- Mappings:
Namespace Name Mixin selector official dLabm;d(Labo;)Lact;intermediary method_3366Lnet/minecraft/class_1069;method_3366(Lnet/minecraft/class_1071;)Lnet/minecraft/class_1099;named getUseActionLnet/minecraft/item/Item;getUseAction(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/UseAction;
-
onStartUse
- Overrides:
onStartUsein classItem- Mappings:
Namespace Name Mixin selector official aLabm;a(Labo;Lafm;Lxk;)Labo;intermediary method_3358Lnet/minecraft/class_1069;method_3358(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Lnet/minecraft/class_988;)Lnet/minecraft/class_1071;named onStartUseLnet/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_3355in classItem- Mappings:
Namespace Name Mixin selector official aLabm;a(Labo;Lxk;Lafm;IIIIFFF)Zintermediary method_3355Lnet/minecraft/class_1069;method_3355(Lnet/minecraft/class_1071;Lnet/minecraft/class_988;Lnet/minecraft/class_1150;IIIIFFF)Znamed method_3355Lnet/minecraft/item/Item;method_3355(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;IIIIFFF)Z
-
method_3343
- Overrides:
method_3343in classItem- Mappings:
Namespace Name Mixin selector official b_Labm;b_(I)Lpr;intermediary method_3343Lnet/minecraft/class_1069;method_3343(I)Lnet/minecraft/class_1557;named method_3343Lnet/minecraft/item/Item;method_3343(I)Lnet/minecraft/client/Texture;
-
method_3369
- Overrides:
method_3369in classItem- Mappings:
Namespace Name Mixin selector official aLabm;a(II)Lpr;intermediary method_3369Lnet/minecraft/class_1069;method_3369(II)Lnet/minecraft/class_1557;named method_3369Lnet/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 gLaca;g(I)Zintermediary method_3458Lnet/minecraft/class_1080;method_3458(I)Znamed method_3458Lnet/minecraft/item/PotionItem;method_3458(I)Z
-
method_4629
- Mappings:
Namespace Name Mixin selector official hLaca;h(I)Iintermediary method_4629Lnet/minecraft/class_1080;method_4629(I)Inamed method_4629Lnet/minecraft/item/PotionItem;method_4629(I)I
-
getDisplayColor
- Overrides:
getDisplayColorin classItem- Mappings:
Namespace Name Mixin selector official aLabm;a(Labo;I)Iintermediary method_3344Lnet/minecraft/class_1069;method_3344(Lnet/minecraft/class_1071;I)Inamed getDisplayColorLnet/minecraft/item/Item;getDisplayColor(Lnet/minecraft/item/ItemStack;I)I
-
method_3397
- Overrides:
method_3397in classItem- Mappings:
Namespace Name Mixin selector official bLabm;b()Zintermediary method_3397Lnet/minecraft/class_1069;method_3397()Znamed method_3397Lnet/minecraft/item/Item;method_3397()Z
-
method_3459
- Mappings:
Namespace Name Mixin selector official iLaca;i(I)Zintermediary method_3459Lnet/minecraft/class_1080;method_3459(I)Znamed method_3459Lnet/minecraft/item/PotionItem;method_3459(I)Z
-
getDisplayName
- Overrides:
getDisplayNamein classItem- Mappings:
Namespace Name Mixin selector official nLabm;n(Labo;)Ljava/lang/String;intermediary method_3383Lnet/minecraft/class_1069;method_3383(Lnet/minecraft/class_1071;)Ljava/lang/String;named getDisplayNameLnet/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:
appendTooltipin classItem- Mappings:
Namespace Name Mixin selector official aLabm;a(Labo;Lxk;Ljava/util/List;Z)Vintermediary method_3352Lnet/minecraft/class_1069;method_3352(Lnet/minecraft/class_1071;Lnet/minecraft/class_988;Ljava/util/List;Z)Vnamed appendTooltipLnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Ljava/util/List;Z)V
-
hasEnchantmentGlint
Returns whether the current item has an enchantment glint. Used by enchanted golden apples and enchanted items.- Overrides:
hasEnchantmentGlintin classItem- See Also:
-
net.minecraft.item.GoldenAppleItem
- Mappings:
Namespace Name Mixin selector official eLabm;e(Labo;)Zintermediary method_3374Lnet/minecraft/class_1069;method_3374(Lnet/minecraft/class_1071;)Znamed hasEnchantmentGlintLnet/minecraft/item/Item;hasEnchantmentGlint(Lnet/minecraft/item/ItemStack;)Z
-
appendItemStacks
Registers an item's sub items- Overrides:
appendItemStacksin classItem- Parameters:
item- The Item instancegroup- The ItemGrouplist- The list of sub items- Mappings:
Namespace Name Mixin selector official aLabm;a(Labm;Laae;Ljava/util/List;)Vintermediary method_3345Lnet/minecraft/class_1069;method_3345(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Ljava/util/List;)Vnamed appendItemStacksLnet/minecraft/item/Item;appendItemStacks(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Ljava/util/List;)V
-
method_5462
- Overrides:
method_5462in classItem- Mappings:
Namespace Name Mixin selector official aLabm;a(Lps;)Vintermediary method_5462Lnet/minecraft/class_1069;method_5462(Lnet/minecraft/class_1558;)Vnamed method_5462Lnet/minecraft/item/Item;method_5462(Lnet/minecraft/client/TextureRegistry;)V
-
method_5466
- Mappings:
Namespace Name Mixin selector official bLaca;b(Ljava/lang/String;)Lpr;intermediary method_5466Lnet/minecraft/class_1080;method_5466(Ljava/lang/String;)Lnet/minecraft/class_1557;named method_5466Lnet/minecraft/item/PotionItem;method_5466(Ljava/lang/String;)Lnet/minecraft/client/Texture;
-