Package net.minecraft.potion
Class PotionUtil
java.lang.Object
net.minecraft.potion.PotionUtil
public class PotionUtil extends Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PotionUtil() -
Method Summary
Modifier and Type Method Description static voidbuildTooltip(ItemStack stack, List<Text> list, float float2)static intgetColor(Collection<StatusEffectInstance> effects)static intgetColor(ItemStack stack)static intgetColor(Potion potion)static List<StatusEffectInstance>getCustomPotionEffects(ItemStack stack)static List<StatusEffectInstance>getCustomPotionEffects(CompoundTag tag)static voidgetCustomPotionEffects(CompoundTag tag, List<StatusEffectInstance> list)static PotiongetPotion(ItemStack stack)static PotiongetPotion(CompoundTag compound)static List<StatusEffectInstance>getPotionEffects(ItemStack stack)static List<StatusEffectInstance>getPotionEffects(CompoundTag tag)static List<StatusEffectInstance>getPotionEffects(Potion potion, Collection<StatusEffectInstance> custom)static ItemStacksetCustomPotionEffects(ItemStack stack, Collection<StatusEffectInstance> effects)static ItemStacksetPotion(ItemStack stack, Potion potion)
-
Field Details
-
NONE_TEXT
-
-
Constructor Details
-
PotionUtil
public PotionUtil()
-
-
Method Details
-
getPotionEffects
-
getPotionEffects
public static List<StatusEffectInstance> getPotionEffects(Potion potion, Collection<StatusEffectInstance> custom) -
getPotionEffects
-
getCustomPotionEffects
-
getCustomPotionEffects
-
getCustomPotionEffects
public static void getCustomPotionEffects(@Nullable CompoundTag tag, List<StatusEffectInstance> list) -
getColor
-
getColor
-
getColor
-
getPotion
-
getPotion
-
setPotion
-
setCustomPotionEffects
public static ItemStack setCustomPotionEffects(ItemStack stack, Collection<StatusEffectInstance> effects) -
buildTooltip
-