类 PotionUtils
java.lang.Object
net.minecraft.world.item.alchemy.PotionUtils
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static void
addPotionTooltip
(List<MobEffectInstance> pEffects, List<Component> pTooltips, float pDurationFactor) static void
addPotionTooltip
(ItemStack pStack, List<Component> pTooltips, float pDurationFactor) static List<MobEffectInstance>
getAllEffects
(CompoundTag pCompoundTag) static List<MobEffectInstance>
getAllEffects
(Potion pPotion, Collection<MobEffectInstance> pEffects) static int
getColor
(Collection<MobEffectInstance> pEffects) static int
static int
static List<MobEffectInstance>
getCustomEffects
(CompoundTag pCompoundTag) static void
getCustomEffects
(CompoundTag pCompoundTag, List<MobEffectInstance> pEffectList) static List<MobEffectInstance>
getCustomEffects
(ItemStack pStack) static List<MobEffectInstance>
getMobEffects
(ItemStack pStack) static Potion
getPotion
(CompoundTag pCompoundTag) static Potion
static ItemStack
setCustomEffects
(ItemStack pStack, Collection<MobEffectInstance> pEffects) static ItemStack
-
字段详细资料
-
构造器详细资料
-
PotionUtils
public PotionUtils()
-
-
方法详细资料
-
getMobEffects
-
getAllEffects
public static List<MobEffectInstance> getAllEffects(Potion pPotion, Collection<MobEffectInstance> pEffects) -
getAllEffects
-
getCustomEffects
-
getCustomEffects
-
getCustomEffects
public static void getCustomEffects(@Nullable CompoundTag pCompoundTag, List<MobEffectInstance> pEffectList) -
getColor
-
getColor
-
getColor
-
getPotion
-
getPotion
-
setPotion
-
setCustomEffects
-
addPotionTooltip
-
addPotionTooltip
public static void addPotionTooltip(List<MobEffectInstance> pEffects, List<Component> pTooltips, float pDurationFactor)
-