public class PotionUtil extends Object
Modifier and Type | Field and Description |
---|---|
private static MutableText |
field_25817 |
Constructor and Description |
---|
PotionUtil() |
private static final MutableText field_25817
public static List<StatusEffectInstance> getPotionEffects(ItemStack stack)
public static List<StatusEffectInstance> getPotionEffects(Potion potion, Collection<StatusEffectInstance> custom)
public static List<StatusEffectInstance> getPotionEffects(@Nullable CompoundTag tag)
public static List<StatusEffectInstance> getCustomPotionEffects(ItemStack stack)
public static List<StatusEffectInstance> getCustomPotionEffects(@Nullable CompoundTag tag)
public static void getCustomPotionEffects(@Nullable CompoundTag tag, List<StatusEffectInstance> list)
public static int getColor(ItemStack stack)
public static int getColor(Potion potion)
public static int getColor(Collection<StatusEffectInstance> effects)
public static Potion getPotion(@Nullable CompoundTag compound)
public static ItemStack setCustomPotionEffects(ItemStack stack, Collection<StatusEffectInstance> effects)