Package net.minecraft.potion
Class PotionUtil
java.lang.Object
net.minecraft.potion.PotionUtil
public class PotionUtil extends Object
- Mappings:
Namespace Name official bpsintermediary net/minecraft/class_1844named net/minecraft/potion/PotionUtil
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PotionUtil() -
Method Summary
Modifier and Type Method Description static voidbuildTooltip(ItemStack stack, List<Text> list, float float2)static intgetColor(Collection<StatusEffectInstance> effects)static intgetColor(ItemStack stack)static intgetColor(Potion potion)static List<StatusEffectInstance>getCustomPotionEffects(ItemStack stack)static List<StatusEffectInstance>getCustomPotionEffects(CompoundTag tag)static voidgetCustomPotionEffects(CompoundTag tag, List<StatusEffectInstance> list)static PotiongetPotion(ItemStack stack)static PotiongetPotion(CompoundTag compound)static List<StatusEffectInstance>getPotionEffects(ItemStack stack)static List<StatusEffectInstance>getPotionEffects(CompoundTag tag)static List<StatusEffectInstance>getPotionEffects(Potion potion, Collection<StatusEffectInstance> custom)static ItemStacksetCustomPotionEffects(ItemStack stack, Collection<StatusEffectInstance> effects)static ItemStacksetPotion(ItemStack stack, Potion potion)
-
Field Details
-
NONE_TEXT
- Mappings:
Namespace Name Mixin selector official aLbps;a:Loi;intermediary field_25817Lnet/minecraft/class_1844;field_25817:Lnet/minecraft/class_2561;named NONE_TEXTLnet/minecraft/potion/PotionUtil;NONE_TEXT:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
PotionUtil
public PotionUtil()
-
-
Method Details
-
getPotionEffects
- Mappings:
Namespace Name Mixin selector official aLbps;a(Lbnv;)Ljava/util/List;intermediary method_8067Lnet/minecraft/class_1844;method_8067(Lnet/minecraft/class_1799;)Ljava/util/List;named getPotionEffectsLnet/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 aLbps;a(Lbpq;Ljava/util/Collection;)Ljava/util/List;intermediary method_8059Lnet/minecraft/class_1844;method_8059(Lnet/minecraft/class_1842;Ljava/util/Collection;)Ljava/util/List;named getPotionEffectsLnet/minecraft/potion/PotionUtil;getPotionEffects(Lnet/minecraft/potion/Potion;Ljava/util/Collection;)Ljava/util/List;
-
getPotionEffects
- Mappings:
Namespace Name Mixin selector official aLbps;a(Lmq;)Ljava/util/List;intermediary method_8066Lnet/minecraft/class_1844;method_8066(Lnet/minecraft/class_2487;)Ljava/util/List;named getPotionEffectsLnet/minecraft/potion/PotionUtil;getPotionEffects(Lnet/minecraft/nbt/CompoundTag;)Ljava/util/List;
-
getCustomPotionEffects
- Mappings:
Namespace Name Mixin selector official bLbps;b(Lbnv;)Ljava/util/List;intermediary method_8068Lnet/minecraft/class_1844;method_8068(Lnet/minecraft/class_1799;)Ljava/util/List;named getCustomPotionEffectsLnet/minecraft/potion/PotionUtil;getCustomPotionEffects(Lnet/minecraft/item/ItemStack;)Ljava/util/List;
-
getCustomPotionEffects
- Mappings:
Namespace Name Mixin selector official bLbps;b(Lmq;)Ljava/util/List;intermediary method_8060Lnet/minecraft/class_1844;method_8060(Lnet/minecraft/class_2487;)Ljava/util/List;named getCustomPotionEffectsLnet/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 aLbps;a(Lmq;Ljava/util/List;)Vintermediary method_8058Lnet/minecraft/class_1844;method_8058(Lnet/minecraft/class_2487;Ljava/util/List;)Vnamed getCustomPotionEffectsLnet/minecraft/potion/PotionUtil;getCustomPotionEffects(Lnet/minecraft/nbt/CompoundTag;Ljava/util/List;)V
-
getColor
- Mappings:
Namespace Name Mixin selector official cLbps;c(Lbnv;)Iintermediary method_8064Lnet/minecraft/class_1844;method_8064(Lnet/minecraft/class_1799;)Inamed getColorLnet/minecraft/potion/PotionUtil;getColor(Lnet/minecraft/item/ItemStack;)I
-
getColor
- Mappings:
Namespace Name Mixin selector official aLbps;a(Lbpq;)Iintermediary method_8062Lnet/minecraft/class_1844;method_8062(Lnet/minecraft/class_1842;)Inamed getColorLnet/minecraft/potion/PotionUtil;getColor(Lnet/minecraft/potion/Potion;)I
-
getColor
- Mappings:
Namespace Name Mixin selector official aLbps;a(Ljava/util/Collection;)Iintermediary method_8055Lnet/minecraft/class_1844;method_8055(Ljava/util/Collection;)Inamed getColorLnet/minecraft/potion/PotionUtil;getColor(Ljava/util/Collection;)I
-
getPotion
- Mappings:
Namespace Name Mixin selector official dLbps;d(Lbnv;)Lbpq;intermediary method_8063Lnet/minecraft/class_1844;method_8063(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1842;named getPotionLnet/minecraft/potion/PotionUtil;getPotion(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/potion/Potion;
-
getPotion
- Mappings:
Namespace Name Mixin selector official cLbps;c(Lmq;)Lbpq;intermediary method_8057Lnet/minecraft/class_1844;method_8057(Lnet/minecraft/class_2487;)Lnet/minecraft/class_1842;named getPotionLnet/minecraft/potion/PotionUtil;getPotion(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/potion/Potion;
-
setPotion
- Mappings:
Namespace Name Mixin selector official aLbps;a(Lbnv;Lbpq;)Lbnv;intermediary method_8061Lnet/minecraft/class_1844;method_8061(Lnet/minecraft/class_1799;Lnet/minecraft/class_1842;)Lnet/minecraft/class_1799;named setPotionLnet/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 aLbps;a(Lbnv;Ljava/util/Collection;)Lbnv;intermediary method_8056Lnet/minecraft/class_1844;method_8056(Lnet/minecraft/class_1799;Ljava/util/Collection;)Lnet/minecraft/class_1799;named setCustomPotionEffectsLnet/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 aLbps;a(Lbnv;Ljava/util/List;F)Vintermediary method_8065Lnet/minecraft/class_1844;method_8065(Lnet/minecraft/class_1799;Ljava/util/List;F)Vnamed buildTooltipLnet/minecraft/potion/PotionUtil;buildTooltip(Lnet/minecraft/item/ItemStack;Ljava/util/List;F)V
-