Package net.minecraft.world.item.alchemy
Class PotionUtils
java.lang.Object
net.minecraft.world.item.alchemy.PotionUtils
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddPotionTooltip(List<MobEffectInstance> p_259687_, List<Component> p_259660_, float p_259949_) static voidaddPotionTooltip(ItemStack p_43556_, List<Component> p_43557_, float p_43558_) static List<MobEffectInstance>getAllEffects(CompoundTag p_43567_) static List<MobEffectInstance>getAllEffects(Potion p_43562_, Collection<MobEffectInstance> p_43563_) static intgetColor(Collection<MobEffectInstance> p_43565_) static intstatic intstatic List<MobEffectInstance>getCustomEffects(CompoundTag p_43574_) static voidgetCustomEffects(CompoundTag p_43569_, List<MobEffectInstance> p_43570_) static List<MobEffectInstance>getCustomEffects(ItemStack p_43572_) static List<MobEffectInstance>getMobEffects(ItemStack p_43548_) static PotiongetPotion(CompoundTag p_43578_) static Potionstatic ItemStacksetCustomEffects(ItemStack p_43553_, Collection<MobEffectInstance> p_43554_) static ItemStack
- 
Field Details- 
TAG_CUSTOM_POTION_EFFECTS- See Also:
 
- 
TAG_CUSTOM_POTION_COLOR- See Also:
 
- 
TAG_POTION- See Also:
 
- 
EMPTY_COLORprivate static final int EMPTY_COLOR- See Also:
 
- 
NO_EFFECT
 
- 
- 
Constructor Details- 
PotionUtilspublic PotionUtils()
 
- 
- 
Method Details- 
getMobEffects
- 
getAllEffectspublic static List<MobEffectInstance> getAllEffects(Potion p_43562_, Collection<MobEffectInstance> p_43563_) 
- 
getAllEffects
- 
getCustomEffects
- 
getCustomEffects
- 
getCustomEffectspublic static void getCustomEffects(@Nullable CompoundTag p_43569_, List<MobEffectInstance> p_43570_) 
- 
getColor
- 
getColor
- 
getColor
- 
getPotion
- 
getPotion
- 
setPotion
- 
setCustomEffectspublic static ItemStack setCustomEffects(ItemStack p_43553_, Collection<MobEffectInstance> p_43554_) 
- 
addPotionTooltip
- 
addPotionTooltippublic static void addPotionTooltip(List<MobEffectInstance> p_259687_, List<Component> p_259660_, float p_259949_) 
 
-