net.minecraft.world.item

public class PotionItem

extends Item

All mapped superinterfaces:

ItemLike

cbl
net.minecraft.world.item.PotionItem
net.minecraft.class_1812
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
MAX_USE_TIME
f_151180_

Constructor summary

ModifierConstructor
public (Item$Properties arg0)

Method summary

Modifier and TypeMethod
public ItemStack
Q_()
getDefaultInstance()
method_7854()
getDefaultStack()
m_7968_()
public ItemStack
a(cax arg0, cgx arg1, bcc arg2)
finishUsingItem(ItemStack arg0, Level arg1, LivingEntity arg2)
method_7861(class_1799 arg0, class_1937 arg1, class_1309 arg2)
finishUsing(ItemStack arg0, World arg1, LivingEntity arg2)
m_5922_(C_1391_ p_42985_, C_1596_ p_42986_, C_524_ arg2)
public InteractionResult
a(ccz arg0)
useOn(UseOnContext arg0)
method_7884(class_1838 arg0)
useOnBlock(ItemUsageContext arg0)
m_6225_(C_1450_ arg0)
public int
b(cax arg0)
getUseDuration(ItemStack arg0)
method_7881(class_1799 arg0)
getMaxUseTime(ItemStack arg0)
m_8105_(C_1391_ arg0)
public UseAnim
c(cax arg0)
getUseAnimation(ItemStack arg0)
method_7853(class_1799 arg0)
getUseAction(ItemStack arg0)
m_6164_(C_1391_ arg0)
public InteractionResultHolder<ItemStack>
a(cgx arg0, buc arg1, bai arg2)
use(Level arg0, Player arg1, InteractionHand arg2)
method_7836(class_1937 arg0, class_1657 arg1, class_1268 arg2)
use(World arg0, PlayerEntity arg1, Hand arg2)
m_7203_(C_1596_ p_42994_, C_1141_ p_42995_, C_470_ arg2)
public String
j(cax arg0)
getDescriptionId(ItemStack arg0)
method_7866(class_1799 arg0)
getTranslationKey(ItemStack arg0)
m_5671_(C_1391_ arg0)
public void
a(cax arg0, cgx arg1, List<rq> arg2, ccl arg3)
appendHoverText(ItemStack arg0, Level arg1, List<Component> arg2, TooltipFlag arg3)
method_7851(class_1799 arg0, class_1937 arg1, List<class_2561> arg2, class_1836 arg3)
appendTooltip(ItemStack arg0, World arg1, List<Text> arg2, TooltipContext arg3)
m_7373_(C_1391_ p_42989_, C_1596_ p_42990_, List<C_4996_> p_42991_, C_1431_ arg3)
public boolean
i(cax arg0)
isFoil(ItemStack arg0)
method_7886(class_1799 arg0)
hasGlint(ItemStack arg0)
m_5812_(C_1391_ arg0)
public void
a(bzj arg0, hi<cax> arg1)
fillItemCategory(CreativeModeTab arg0, NonNullList<ItemStack> arg1)
method_7850(class_1761 arg0, class_2371<class_1799> arg1)
appendStacks(ItemGroup arg0, DefaultedList<ItemStack> arg1)
m_6787_(C_1336_ p_42982_, C_4702_<C_1391_> arg1)