Package net.minecraft.potion
Class PotionUtil
java.lang.Object
net.minecraft.potion.PotionUtil
- Mappings:
Namespace Name official chw
intermediary net/minecraft/class_1844
named net/minecraft/potion/PotionUtil
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
buildTooltip
(List<StatusEffectInstance> statusEffects, List<Text> list, float durationMultiplier) static void
buildTooltip
(ItemStack stack, List<Text> list, float durationMultiplier) static int
getColor
(Collection<StatusEffectInstance> effects) static int
static int
static List<StatusEffectInstance>
getCustomPotionEffects
(ItemStack stack) static List<StatusEffectInstance>
static void
static Potion
static Potion
getPotion
(@Nullable NbtCompound compound) static List<StatusEffectInstance>
getPotionEffects
(ItemStack stack) static List<StatusEffectInstance>
static List<StatusEffectInstance>
getPotionEffects
(Potion potion, Collection<StatusEffectInstance> custom) static ItemStack
setCustomPotionEffects
(ItemStack stack, Collection<StatusEffectInstance> effects) static ItemStack
-
Field Details
-
CUSTOM_POTION_EFFECTS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lchw;a:Ljava/lang/String;
intermediary field_30943
Lnet/minecraft/class_1844;field_30943:Ljava/lang/String;
named CUSTOM_POTION_EFFECTS_KEY
Lnet/minecraft/potion/PotionUtil;CUSTOM_POTION_EFFECTS_KEY:Ljava/lang/String;
-
CUSTOM_POTION_COLOR_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lchw;b:Ljava/lang/String;
intermediary field_30944
Lnet/minecraft/class_1844;field_30944:Ljava/lang/String;
named CUSTOM_POTION_COLOR_KEY
Lnet/minecraft/potion/PotionUtil;CUSTOM_POTION_COLOR_KEY:Ljava/lang/String;
-
POTION_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lchw;c:Ljava/lang/String;
intermediary field_30945
Lnet/minecraft/class_1844;field_30945:Ljava/lang/String;
named POTION_KEY
Lnet/minecraft/potion/PotionUtil;POTION_KEY:Ljava/lang/String;
-
DEFAULT_COLOR
private static final int DEFAULT_COLOR- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lchw;d:I
intermediary field_30946
Lnet/minecraft/class_1844;field_30946:I
named DEFAULT_COLOR
Lnet/minecraft/potion/PotionUtil;DEFAULT_COLOR:I
-
NONE_TEXT
- Mappings:
Namespace Name Mixin selector official e
Lchw;e:Lsw;
intermediary field_25817
Lnet/minecraft/class_1844;field_25817:Lnet/minecraft/class_2561;
named NONE_TEXT
Lnet/minecraft/potion/PotionUtil;NONE_TEXT:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
PotionUtil
public PotionUtil()
-
-
Method Details
-
getPotionEffects
- Mappings:
Namespace Name Mixin selector official a
Lchw;a(Lcfx;)Ljava/util/List;
intermediary method_8067
Lnet/minecraft/class_1844;method_8067(Lnet/minecraft/class_1799;)Ljava/util/List;
named getPotionEffects
Lnet/minecraft/potion/PotionUtil;getPotionEffects(Lnet/minecraft/item/ItemStack;)Ljava/util/List;
-
getPotionEffects
public static List<StatusEffectInstance> getPotionEffects(Potion potion, Collection<StatusEffectInstance> custom) - Mappings:
Namespace Name Mixin selector official a
Lchw;a(Lchu;Ljava/util/Collection;)Ljava/util/List;
intermediary method_8059
Lnet/minecraft/class_1844;method_8059(Lnet/minecraft/class_1842;Ljava/util/Collection;)Ljava/util/List;
named getPotionEffects
Lnet/minecraft/potion/PotionUtil;getPotionEffects(Lnet/minecraft/potion/Potion;Ljava/util/Collection;)Ljava/util/List;
-
getPotionEffects
- Mappings:
Namespace Name Mixin selector official a
Lchw;a(Lqr;)Ljava/util/List;
intermediary method_8066
Lnet/minecraft/class_1844;method_8066(Lnet/minecraft/class_2487;)Ljava/util/List;
named getPotionEffects
Lnet/minecraft/potion/PotionUtil;getPotionEffects(Lnet/minecraft/nbt/NbtCompound;)Ljava/util/List;
-
getCustomPotionEffects
- Mappings:
Namespace Name Mixin selector official b
Lchw;b(Lcfx;)Ljava/util/List;
intermediary method_8068
Lnet/minecraft/class_1844;method_8068(Lnet/minecraft/class_1799;)Ljava/util/List;
named getCustomPotionEffects
Lnet/minecraft/potion/PotionUtil;getCustomPotionEffects(Lnet/minecraft/item/ItemStack;)Ljava/util/List;
-
getCustomPotionEffects
public static List<StatusEffectInstance> getCustomPotionEffects(@Nullable @Nullable NbtCompound nbt) - Mappings:
Namespace Name Mixin selector official b
Lchw;b(Lqr;)Ljava/util/List;
intermediary method_8060
Lnet/minecraft/class_1844;method_8060(Lnet/minecraft/class_2487;)Ljava/util/List;
named getCustomPotionEffects
Lnet/minecraft/potion/PotionUtil;getCustomPotionEffects(Lnet/minecraft/nbt/NbtCompound;)Ljava/util/List;
-
getCustomPotionEffects
public static void getCustomPotionEffects(@Nullable @Nullable NbtCompound nbt, List<StatusEffectInstance> list) - Mappings:
Namespace Name Mixin selector official a
Lchw;a(Lqr;Ljava/util/List;)V
intermediary method_8058
Lnet/minecraft/class_1844;method_8058(Lnet/minecraft/class_2487;Ljava/util/List;)V
named getCustomPotionEffects
Lnet/minecraft/potion/PotionUtil;getCustomPotionEffects(Lnet/minecraft/nbt/NbtCompound;Ljava/util/List;)V
-
getColor
- Mappings:
Namespace Name Mixin selector official c
Lchw;c(Lcfx;)I
intermediary method_8064
Lnet/minecraft/class_1844;method_8064(Lnet/minecraft/class_1799;)I
named getColor
Lnet/minecraft/potion/PotionUtil;getColor(Lnet/minecraft/item/ItemStack;)I
-
getColor
- Mappings:
Namespace Name Mixin selector official a
Lchw;a(Lchu;)I
intermediary method_8062
Lnet/minecraft/class_1844;method_8062(Lnet/minecraft/class_1842;)I
named getColor
Lnet/minecraft/potion/PotionUtil;getColor(Lnet/minecraft/potion/Potion;)I
-
getColor
- Mappings:
Namespace Name Mixin selector official a
Lchw;a(Ljava/util/Collection;)I
intermediary method_8055
Lnet/minecraft/class_1844;method_8055(Ljava/util/Collection;)I
named getColor
Lnet/minecraft/potion/PotionUtil;getColor(Ljava/util/Collection;)I
-
getPotion
- Mappings:
Namespace Name Mixin selector official d
Lchw;d(Lcfx;)Lchu;
intermediary method_8063
Lnet/minecraft/class_1844;method_8063(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1842;
named getPotion
Lnet/minecraft/potion/PotionUtil;getPotion(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/potion/Potion;
-
getPotion
- Mappings:
Namespace Name Mixin selector official c
Lchw;c(Lqr;)Lchu;
intermediary method_8057
Lnet/minecraft/class_1844;method_8057(Lnet/minecraft/class_2487;)Lnet/minecraft/class_1842;
named getPotion
Lnet/minecraft/potion/PotionUtil;getPotion(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/potion/Potion;
-
setPotion
- Mappings:
Namespace Name Mixin selector official a
Lchw;a(Lcfx;Lchu;)Lcfx;
intermediary method_8061
Lnet/minecraft/class_1844;method_8061(Lnet/minecraft/class_1799;Lnet/minecraft/class_1842;)Lnet/minecraft/class_1799;
named setPotion
Lnet/minecraft/potion/PotionUtil;setPotion(Lnet/minecraft/item/ItemStack;Lnet/minecraft/potion/Potion;)Lnet/minecraft/item/ItemStack;
-
setCustomPotionEffects
public static ItemStack setCustomPotionEffects(ItemStack stack, Collection<StatusEffectInstance> effects) - Mappings:
Namespace Name Mixin selector official a
Lchw;a(Lcfx;Ljava/util/Collection;)Lcfx;
intermediary method_8056
Lnet/minecraft/class_1844;method_8056(Lnet/minecraft/class_1799;Ljava/util/Collection;)Lnet/minecraft/class_1799;
named setCustomPotionEffects
Lnet/minecraft/potion/PotionUtil;setCustomPotionEffects(Lnet/minecraft/item/ItemStack;Ljava/util/Collection;)Lnet/minecraft/item/ItemStack;
-
buildTooltip
- Mappings:
Namespace Name Mixin selector official a
Lchw;a(Lcfx;Ljava/util/List;F)V
intermediary method_47372
Lnet/minecraft/class_1844;method_47372(Lnet/minecraft/class_1799;Ljava/util/List;F)V
named buildTooltip
Lnet/minecraft/potion/PotionUtil;buildTooltip(Lnet/minecraft/item/ItemStack;Ljava/util/List;F)V
-
buildTooltip
public static void buildTooltip(List<StatusEffectInstance> statusEffects, List<Text> list, float durationMultiplier) - Mappings:
Namespace Name Mixin selector official a
Lchw;a(Ljava/util/List;Ljava/util/List;F)V
intermediary method_8065
Lnet/minecraft/class_1844;method_8065(Ljava/util/List;Ljava/util/List;F)V
named buildTooltip
Lnet/minecraft/potion/PotionUtil;buildTooltip(Ljava/util/List;Ljava/util/List;F)V
-