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(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 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:
- Constant Field Values
-
TAG_CUSTOM_POTION_COLOR
- See Also:
- Constant Field Values
-
TAG_POTION
- See Also:
- Constant Field Values
-
EMPTY_COLOR
private static final int EMPTY_COLOR- See Also:
- Constant Field Values
-
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
-