Package net.minecraft.world.item.alchemy
Class PotionUtils
java.lang.Object
net.minecraft.world.item.alchemy.PotionUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addPotionTooltip
(List<MobEffectInstance> p_259687_, List<Component> p_259660_, float p_259949_, float p_309432_) static void
addPotionTooltip
(ItemStack p_43556_, List<Component> p_43557_, float p_43558_, float p_309813_) static List<MobEffectInstance>
getAllEffects
(CompoundTag p_43567_) static List<MobEffectInstance>
getAllEffects
(Potion p_43562_, Collection<MobEffectInstance> p_43563_) static int
getColor
(Collection<MobEffectInstance> p_43565_) static int
static int
static List<MobEffectInstance>
getCustomEffects
(CompoundTag p_43574_) static void
getCustomEffects
(CompoundTag p_43569_, List<MobEffectInstance> p_43570_) static List<MobEffectInstance>
getCustomEffects
(ItemStack p_43572_) static List<MobEffectInstance>
getMobEffects
(ItemStack p_43548_) static Potion
getPotion
(CompoundTag p_43578_) static Potion
static ItemStack
setCustomEffects
(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_COLOR
private static final int EMPTY_COLOR- See Also:
-
NO_EFFECT
-
-
Constructor Details
-
PotionUtils
public PotionUtils()
-
-
Method Details
-
getMobEffects
-
getAllEffects
public static List<MobEffectInstance> getAllEffects(Potion p_43562_, Collection<MobEffectInstance> p_43563_) -
getAllEffects
-
getCustomEffects
-
getCustomEffects
-
getCustomEffects
public static void getCustomEffects(@Nullable CompoundTag p_43569_, List<MobEffectInstance> p_43570_) -
getColor
-
getColor
-
getColor
-
getPotion
-
getPotion
-
setPotion
-
setCustomEffects
public static ItemStack setCustomEffects(ItemStack p_43553_, Collection<MobEffectInstance> p_43554_) -
addPotionTooltip
-
addPotionTooltip
public static void addPotionTooltip(List<MobEffectInstance> p_259687_, List<Component> p_259660_, float p_259949_, float p_309432_)
-