Class PotionUtil

java.lang.Object
net.minecraft.potion.PotionUtil

public class PotionUtil
extends Object
Mappings:
Namespace Name
official bro
intermediary net/minecraft/class_1844
named net/minecraft/potion/PotionUtil
  • Field Details

    • CUSTOM_POTION_EFFECTS_KEY

      public static final String CUSTOM_POTION_EFFECTS_KEY
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Lbro;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

      public static final String CUSTOM_POTION_COLOR_KEY
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official b Lbro;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

      public static final String POTION_KEY
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official c Lbro;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:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official d Lbro;d:I
      intermediary field_30946 Lnet/minecraft/class_1844;field_30946:I
      named DEFAULT_COLOR Lnet/minecraft/potion/PotionUtil;DEFAULT_COLOR:I
    • NONE_TEXT

      private static final Text NONE_TEXT
      Mappings:
      Namespace Name Mixin selector
      official e Lbro;e:Lon;
      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

      public static List<StatusEffectInstance> getPotionEffects​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbro;a(Lbpr;)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 Lbro;a(Lbrm;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

      public static List<StatusEffectInstance> getPotionEffects​(@Nullable @Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lbro;a(Lmv;)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

      public static List<StatusEffectInstance> getCustomPotionEffects​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official b Lbro;b(Lbpr;)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 Lbro;b(Lmv;)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 Lbro;a(Lmv;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

      public static int getColor​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official c Lbro;c(Lbpr;)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

      public static int getColor​(Potion potion)
      Mappings:
      Namespace Name Mixin selector
      official a Lbro;a(Lbrm;)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

      public static int getColor​(Collection<StatusEffectInstance> effects)
      Mappings:
      Namespace Name Mixin selector
      official a Lbro;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

      public static Potion getPotion​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official d Lbro;d(Lbpr;)Lbrm;
      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

      public static Potion getPotion​(@Nullable @Nullable NbtCompound compound)
      Mappings:
      Namespace Name Mixin selector
      official c Lbro;c(Lmv;)Lbrm;
      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

      public static ItemStack setPotion​(ItemStack stack, Potion potion)
      Mappings:
      Namespace Name Mixin selector
      official a Lbro;a(Lbpr;Lbrm;)Lbpr;
      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 Lbro;a(Lbpr;Ljava/util/Collection;)Lbpr;
      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

      public static void buildTooltip​(ItemStack stack, List<Text> list, float float2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbro;a(Lbpr;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