public class PotionUtils
extends java.lang.Object
Constructor and Description |
---|
PotionUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addCustomPotionEffectToList(NBTTagCompound tag,
java.util.List<PotionEffect> effectList) |
static ItemStack |
addPotionToItemStack(ItemStack itemIn,
PotionType potionIn) |
static void |
addPotionTooltip(ItemStack itemIn,
java.util.List<java.lang.String> lores,
float durationFactor) |
static ItemStack |
appendEffects(ItemStack itemIn,
java.util.Collection<PotionEffect> effects) |
static int |
getColor(ItemStack p_190932_0_) |
static java.util.List<PotionEffect> |
getEffectsFromStack(ItemStack stack) |
static java.util.List<PotionEffect> |
getEffectsFromTag(NBTTagCompound tag) |
static java.util.List<PotionEffect> |
getFullEffectsFromItem(ItemStack itemIn) |
static java.util.List<PotionEffect> |
getFullEffectsFromTag(NBTTagCompound tag) |
static int |
getPotionColor(PotionType potionIn) |
static int |
getPotionColorFromEffectList(java.util.Collection<PotionEffect> effects) |
static PotionType |
getPotionFromItem(ItemStack itemIn) |
static PotionType |
getPotionTypeFromNBT(NBTTagCompound tag) |
static java.util.List<PotionEffect> |
mergeEffects(PotionType potionIn,
java.util.Collection<PotionEffect> effects) |
public static java.util.List<PotionEffect> getEffectsFromStack(ItemStack stack)
public static java.util.List<PotionEffect> mergeEffects(PotionType potionIn, java.util.Collection<PotionEffect> effects)
public static java.util.List<PotionEffect> getEffectsFromTag(@Nullable NBTTagCompound tag)
public static java.util.List<PotionEffect> getFullEffectsFromItem(ItemStack itemIn)
public static java.util.List<PotionEffect> getFullEffectsFromTag(@Nullable NBTTagCompound tag)
public static void addCustomPotionEffectToList(@Nullable NBTTagCompound tag, java.util.List<PotionEffect> effectList)
public static int getColor(ItemStack p_190932_0_)
public static int getPotionColor(PotionType potionIn)
public static int getPotionColorFromEffectList(java.util.Collection<PotionEffect> effects)
public static PotionType getPotionFromItem(ItemStack itemIn)
public static PotionType getPotionTypeFromNBT(@Nullable NBTTagCompound tag)
public static ItemStack addPotionToItemStack(ItemStack itemIn, PotionType potionIn)
public static ItemStack appendEffects(ItemStack itemIn, java.util.Collection<PotionEffect> effects)
public static void addPotionTooltip(ItemStack itemIn, java.util.List<java.lang.String> lores, float durationFactor)