Class PotionUtil

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

public class PotionUtil extends Object
Mappings:
Namespace Name
official auv
intermediary net/minecraft/class_2698
named net/minecraft/potion/PotionUtil
  • Constructor Details

    • PotionUtil

      public PotionUtil()
  • Method Details

    • getPotionEffects

      public static List<StatusEffectInstance> getPotionEffects(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lauv;a(Late;)Ljava/util/List;
      intermediary method_11430 Lnet/minecraft/class_2698;method_11430(Lnet/minecraft/class_1071;)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 Lauv;a(Laut;Ljava/util/Collection;)Ljava/util/List;
      intermediary method_11435 Lnet/minecraft/class_2698;method_11435(Lnet/minecraft/class_2695;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 NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lauv;a(Lgy;)Ljava/util/List;
      intermediary method_11436 Lnet/minecraft/class_2698;method_11436(Lnet/minecraft/class_322;)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 Lauv;b(Late;)Ljava/util/List;
      intermediary method_11439 Lnet/minecraft/class_2698;method_11439(Lnet/minecraft/class_1071;)Ljava/util/List;
      named getCustomPotionEffects Lnet/minecraft/potion/PotionUtil;getCustomPotionEffects(Lnet/minecraft/item/ItemStack;)Ljava/util/List;
    • getCustomPotionEffects

      public static List<StatusEffectInstance> getCustomPotionEffects(@Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official b Lauv;b(Lgy;)Ljava/util/List;
      intermediary method_11440 Lnet/minecraft/class_2698;method_11440(Lnet/minecraft/class_322;)Ljava/util/List;
      named getCustomPotionEffects Lnet/minecraft/potion/PotionUtil;getCustomPotionEffects(Lnet/minecraft/nbt/NbtCompound;)Ljava/util/List;
    • getCustomPotionEffects

      public static void getCustomPotionEffects(@Nullable NbtCompound nbt, List<StatusEffectInstance> list)
      Mappings:
      Namespace Name Mixin selector
      official a Lauv;a(Lgy;Ljava/util/List;)V
      intermediary method_11437 Lnet/minecraft/class_2698;method_11437(Lnet/minecraft/class_322;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 Lauv;c(Late;)I
      intermediary method_13668 Lnet/minecraft/class_2698;method_13668(Lnet/minecraft/class_1071;)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 Lauv;a(Laut;)I
      intermediary method_11434 Lnet/minecraft/class_2698;method_11434(Lnet/minecraft/class_2695;)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 Lauv;a(Ljava/util/Collection;)I
      intermediary method_11438 Lnet/minecraft/class_2698;method_11438(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 Lauv;d(Late;)Laut;
      intermediary method_11441 Lnet/minecraft/class_2698;method_11441(Lnet/minecraft/class_1071;)Lnet/minecraft/class_2695;
      named getPotion Lnet/minecraft/potion/PotionUtil;getPotion(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/potion/Potion;
    • getPotion

      public static Potion getPotion(@Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official c Lauv;c(Lgy;)Laut;
      intermediary method_11442 Lnet/minecraft/class_2698;method_11442(Lnet/minecraft/class_322;)Lnet/minecraft/class_2695;
      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 Lauv;a(Late;Laut;)Late;
      intermediary method_11431 Lnet/minecraft/class_2698;method_11431(Lnet/minecraft/class_1071;Lnet/minecraft/class_2695;)Lnet/minecraft/class_1071;
      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 Lauv;a(Late;Ljava/util/Collection;)Late;
      intermediary method_11432 Lnet/minecraft/class_2698;method_11432(Lnet/minecraft/class_1071;Ljava/util/Collection;)Lnet/minecraft/class_1071;
      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 Lauv;a(Late;Ljava/util/List;F)V
      intermediary method_11433 Lnet/minecraft/class_2698;method_11433(Lnet/minecraft/class_1071;Ljava/util/List;F)V
      named buildTooltip Lnet/minecraft/potion/PotionUtil;buildTooltip(Lnet/minecraft/item/ItemStack;Ljava/util/List;F)V