public class PotionUtils
extends java.lang.Object
Constructor and Description |
---|
PotionUtils() |
public static java.util.List<EffectInstance> getEffectsFromStack(ItemStack stack)
public static java.util.List<EffectInstance> mergeEffects(Potion potionIn, java.util.Collection<EffectInstance> effects)
public static java.util.List<EffectInstance> getEffectsFromTag(@Nullable CompoundNBT tag)
public static java.util.List<EffectInstance> getFullEffectsFromItem(ItemStack itemIn)
public static java.util.List<EffectInstance> getFullEffectsFromTag(@Nullable CompoundNBT tag)
public static void addCustomPotionEffectToList(@Nullable CompoundNBT tag, java.util.List<EffectInstance> effectList)
public static int getColor(ItemStack itemStackIn)
public static int getPotionColor(Potion potionIn)
public static int getPotionColorFromEffectList(java.util.Collection<EffectInstance> effects)
public static Potion getPotionTypeFromNBT(@Nullable CompoundNBT tag)
public static ItemStack addPotionToItemStack(ItemStack itemIn, Potion potionIn)
public static ItemStack appendEffects(ItemStack itemIn, java.util.Collection<EffectInstance> effects)
public static void addPotionTooltip(ItemStack itemIn, java.util.List<ITextComponent> lores, float durationFactor)