public class PotionUtil extends Object
Constructor and Description |
---|
PotionUtil() |
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)