Package net.minecraft.potion
Class PotionUtil
java.lang.Object
net.minecraft.potion.PotionUtil
public class PotionUtil extends Object
- Mappings:
Namespace Name official bps
intermediary net/minecraft/class_1844
named net/minecraft/potion/PotionUtil
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PotionUtil()
-
Method Summary
Modifier and Type Method Description static void
buildTooltip(ItemStack stack, List<Text> list, float float2)
static int
getColor(Collection<StatusEffectInstance> effects)
static int
getColor(ItemStack stack)
static int
getColor(Potion potion)
static List<StatusEffectInstance>
getCustomPotionEffects(ItemStack stack)
static List<StatusEffectInstance>
getCustomPotionEffects(CompoundTag tag)
static void
getCustomPotionEffects(CompoundTag tag, List<StatusEffectInstance> list)
static Potion
getPotion(ItemStack stack)
static Potion
getPotion(CompoundTag compound)
static List<StatusEffectInstance>
getPotionEffects(ItemStack stack)
static List<StatusEffectInstance>
getPotionEffects(CompoundTag tag)
static List<StatusEffectInstance>
getPotionEffects(Potion potion, Collection<StatusEffectInstance> custom)
static ItemStack
setCustomPotionEffects(ItemStack stack, Collection<StatusEffectInstance> effects)
static ItemStack
setPotion(ItemStack stack, Potion potion)
-
Field Details
-
NONE_TEXT
- Mappings:
Namespace Name Mixin selector official a
Lbps;a:Loi;
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
Lbps;a(Lbnv;)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
Lbps;a(Lbpq;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
Lbps;a(Lmq;)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/CompoundTag;)Ljava/util/List;
-
getCustomPotionEffects
- Mappings:
Namespace Name Mixin selector official b
Lbps;b(Lbnv;)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
- Mappings:
Namespace Name Mixin selector official b
Lbps;b(Lmq;)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/CompoundTag;)Ljava/util/List;
-
getCustomPotionEffects
public static void getCustomPotionEffects(@Nullable CompoundTag tag, List<StatusEffectInstance> list)- Mappings:
Namespace Name Mixin selector official a
Lbps;a(Lmq;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/CompoundTag;Ljava/util/List;)V
-
getColor
- Mappings:
Namespace Name Mixin selector official c
Lbps;c(Lbnv;)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
Lbps;a(Lbpq;)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
Lbps;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
Lbps;d(Lbnv;)Lbpq;
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
Lbps;c(Lmq;)Lbpq;
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/CompoundTag;)Lnet/minecraft/potion/Potion;
-
setPotion
- Mappings:
Namespace Name Mixin selector official a
Lbps;a(Lbnv;Lbpq;)Lbnv;
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
Lbps;a(Lbnv;Ljava/util/Collection;)Lbnv;
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
@Environment(CLIENT) public static void buildTooltip(ItemStack stack, List<Text> list, float float2)- Mappings:
Namespace Name Mixin selector official a
Lbps;a(Lbnv;Ljava/util/List;F)V
intermediary method_8065
Lnet/minecraft/class_1844;method_8065(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
-