类 PotionUtil
- java.lang.Object
-
- net.minecraft.potion.PotionUtil
-
public class PotionUtil extends Object
- Mappings:
Namespace Name official brointermediary net/minecraft/class_1844named net/minecraft/potion/PotionUtil
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringCUSTOM_POTION_COLOR_KEYstatic StringCUSTOM_POTION_EFFECTS_KEYprivate static intDEFAULT_COLORprivate static TextNONE_TEXTstatic StringPOTION_KEY
-
构造器概要
构造器 构造器 说明 PotionUtil()
-
方法概要
-
-
-
字段详细资料
-
CUSTOM_POTION_EFFECTS_KEY
public static final String CUSTOM_POTION_EFFECTS_KEY
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLbro;a:Ljava/lang/String;intermediary field_30943Lnet/minecraft/class_1844;field_30943:Ljava/lang/String;named CUSTOM_POTION_EFFECTS_KEYLnet/minecraft/potion/PotionUtil;CUSTOM_POTION_EFFECTS_KEY:Ljava/lang/String;
-
CUSTOM_POTION_COLOR_KEY
public static final String CUSTOM_POTION_COLOR_KEY
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLbro;b:Ljava/lang/String;intermediary field_30944Lnet/minecraft/class_1844;field_30944:Ljava/lang/String;named CUSTOM_POTION_COLOR_KEYLnet/minecraft/potion/PotionUtil;CUSTOM_POTION_COLOR_KEY:Ljava/lang/String;
-
POTION_KEY
public static final String POTION_KEY
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLbro;c:Ljava/lang/String;intermediary field_30945Lnet/minecraft/class_1844;field_30945:Ljava/lang/String;named POTION_KEYLnet/minecraft/potion/PotionUtil;POTION_KEY:Ljava/lang/String;
-
DEFAULT_COLOR
private static final int DEFAULT_COLOR
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official dLbro;d:Iintermediary field_30946Lnet/minecraft/class_1844;field_30946:Inamed DEFAULT_COLORLnet/minecraft/potion/PotionUtil;DEFAULT_COLOR:I
-
NONE_TEXT
private static final Text NONE_TEXT
- Mappings:
Namespace Name Mixin selector official eLbro;e:Lon;intermediary field_25817Lnet/minecraft/class_1844;field_25817:Lnet/minecraft/class_2561;named NONE_TEXTLnet/minecraft/potion/PotionUtil;NONE_TEXT:Lnet/minecraft/text/Text;
-
-
方法详细资料
-
getPotionEffects
public static List<StatusEffectInstance> getPotionEffects(ItemStack stack)
- Mappings:
Namespace Name Mixin selector official aLbro;a(Lbpr;)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 aLbro;a(Lbrm;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
public static List<StatusEffectInstance> getPotionEffects(@Nullable @Nullable CompoundTag nbt)
- Mappings:
Namespace Name Mixin selector official aLbro;a(Lmv;)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
public static List<StatusEffectInstance> getCustomPotionEffects(ItemStack stack)
- Mappings:
Namespace Name Mixin selector official bLbro;b(Lbpr;)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
public static List<StatusEffectInstance> getCustomPotionEffects(@Nullable @Nullable CompoundTag nbt)
- Mappings:
Namespace Name Mixin selector official bLbro;b(Lmv;)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 @Nullable CompoundTag nbt, List<StatusEffectInstance> list)
- Mappings:
Namespace Name Mixin selector official aLbro;a(Lmv;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
public static int getColor(ItemStack stack)
- Mappings:
Namespace Name Mixin selector official cLbro;c(Lbpr;)Iintermediary method_8064Lnet/minecraft/class_1844;method_8064(Lnet/minecraft/class_1799;)Inamed getColorLnet/minecraft/potion/PotionUtil;getColor(Lnet/minecraft/item/ItemStack;)I
-
getColor
public static int getColor(Potion potion)
- Mappings:
Namespace Name Mixin selector official aLbro;a(Lbrm;)Iintermediary method_8062Lnet/minecraft/class_1844;method_8062(Lnet/minecraft/class_1842;)Inamed getColorLnet/minecraft/potion/PotionUtil;getColor(Lnet/minecraft/potion/Potion;)I
-
getColor
public static int getColor(Collection<StatusEffectInstance> effects)
- Mappings:
Namespace Name Mixin selector official aLbro;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
public static Potion getPotion(ItemStack stack)
- Mappings:
Namespace Name Mixin selector official dLbro;d(Lbpr;)Lbrm;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
public static Potion getPotion(@Nullable @Nullable CompoundTag compound)
- Mappings:
Namespace Name Mixin selector official cLbro;c(Lmv;)Lbrm;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
public static ItemStack setPotion(ItemStack stack, Potion potion)
- Mappings:
Namespace Name Mixin selector official aLbro;a(Lbpr;Lbrm;)Lbpr;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 aLbro;a(Lbpr;Ljava/util/Collection;)Lbpr;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
public static void buildTooltip(ItemStack stack, List<Text> list, float float2)
- Mappings:
Namespace Name Mixin selector official aLbro;a(Lbpr;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
-
-