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 void
buildTooltip(ItemStack stack, List<Text> list, float float2)
static int
getColor(Collection<StatusEffectInstance> effects)
static int
getColor(ItemStack stack)
static int
getColor(Potion potion)
static List<StatusEffectInstance>
getCustomPotionEffects(ItemStack stack)
static List<StatusEffectInstance>
getCustomPotionEffects(CompoundTag tag)
static void
getCustomPotionEffects(CompoundTag tag, List<StatusEffectInstance> list)
static Potion
getPotion(ItemStack stack)
static Potion
getPotion(CompoundTag compound)
static List<StatusEffectInstance>
getPotionEffects(ItemStack stack)
static List<StatusEffectInstance>
getPotionEffects(CompoundTag tag)
static List<StatusEffectInstance>
getPotionEffects(Potion potion, Collection<StatusEffectInstance> custom)
static ItemStack
setCustomPotionEffects(ItemStack stack, Collection<StatusEffectInstance> effects)
static ItemStack
setPotion(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
-