net.minecraft.world.item

public class PotionItem

extends Item

All mapped superinterfaces:

FeatureElement, ItemLike

cvl
net.minecraft.world.item.PotionItem
net.minecraft.class_1812
net.minecraft.unmapped.C_jgyanlws
net.minecraft.item.PotionItem
net.minecraft.item.PotionItem
net.minecraft.src.C_1405_
net.minecraft.world.item.ItemPotion

Field summary

Modifier and TypeField
private static final int
a
DRINK_DURATION
field_30917
f_ahogrvrd
MAX_USE_TIME
MAX_USE_TIME
f_151180_

Constructor summary

ModifierConstructor
public (Item$Properties arg0)

Method summary

Modifier and TypeMethod
public ItemStack
w()
getDefaultInstance()
method_7854()
m_lthgnjiq()
getDefaultStack()
getDefaultStack()
m_7968_()
public ItemStack
a(cuq arg0, dcw arg1, btn arg2)
finishUsingItem(ItemStack arg0, Level arg1, LivingEntity arg2)
method_7861(class_1799 arg0, class_1937 arg1, class_1309 arg2)
m_knbnsgbn(C_sddaxwyk arg0, C_cdctfzbn arg1, C_usxaxydn arg2)
finishUsing(ItemStack arg0, World arg1, LivingEntity arg2)
finishUsing(ItemStack arg0, World arg1, LivingEntity arg2)
m_5922_(C_1391_ p_42985_, C_1596_ p_42986_, C_524_ arg2)
public InteractionResult
a(cyf arg0)
useOn(UseOnContext arg0)
method_7884(class_1838 arg0)
m_mtceqnlj(C_yyklzime arg0)
useOnBlock(ItemUsageContext arg0)
useOnBlock(ItemUsageContext arg0)
m_6225_(C_1450_ arg0)
public int
a(cuq arg0, btn arg1)
getUseDuration(ItemStack arg0, LivingEntity arg1)
method_7881(class_1799 arg0, class_1309 arg1)
m_hwznhtnf(C_sddaxwyk arg0, C_usxaxydn arg1)
getMaxUseTime(ItemStack arg0, LivingEntity arg1)
getUseTicks(ItemStack arg0, LivingEntity arg1)
m_8105_(C_1391_ p_345280_, C_524_ arg1)
public UseAnim
b(cuq arg0)
getUseAnimation(ItemStack arg0)
method_7853(class_1799 arg0)
m_yvddkccr(C_sddaxwyk arg0)
getUseAction(ItemStack arg0)
getUseAction(ItemStack arg0)
m_6164_(C_1391_ arg0)
public InteractionResultHolder<ItemStack>
a(dcw arg0, cmx arg1, bqq arg2)
use(Level arg0, Player arg1, InteractionHand arg2)
method_7836(class_1937 arg0, class_1657 arg1, class_1268 arg2)
m_znsmbimv(C_cdctfzbn arg0, C_jzrpycqo arg1, C_laxmzoqs arg2)
use(World arg0, PlayerEntity arg1, Hand arg2)
use(World arg0, PlayerEntity arg1, Hand arg2)
m_7203_(C_1596_ p_42994_, C_1141_ p_42995_, C_470_ arg2)
public String
h(cuq arg0)
getDescriptionId(ItemStack arg0)
method_7866(class_1799 arg0)
m_qibylykw(C_sddaxwyk arg0)
getTranslationKey(ItemStack arg0)
getTranslationKey(ItemStack arg0)
m_5671_(C_1391_ arg0)
public void
a(cuq arg0, cul$b arg1, List<wz> arg2, cwm arg3)
appendHoverText(ItemStack arg0, Item$TooltipContext arg1, List<Component> arg2, TooltipFlag arg3)
method_7851(class_1799 arg0, class_1792$class_9635 arg1, List<class_2561> arg2, class_1836 arg3)
m_vlpdhsgt(C_sddaxwyk arg0, C_vorddnax$C_rdhfmrgz arg1, List<C_rdaqiwdt> arg2, C_taebrtdw arg3)
appendTooltip(ItemStack arg0, Item$TooltipContext arg1, List<Text> arg2, TooltipType arg3)
appendTooltip(ItemStack arg0, Item$TooltipContext arg1, List<Text> arg2, TooltipConfig arg3)
m_7373_(C_1391_ p_332780_, C_1381_$C_313602_ p_42990_, List<C_4996_> p_42991_, C_1431_ arg3)