Package net.minecraft.potion
Class Potion
java.lang.Object
net.minecraft.potion.Potion
- All Implemented Interfaces:
ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/potion/Potion
intermediary net/minecraft/class_1842
official cwq
-
Field Summary
Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS
-
Constructor Summary
ConstructorDescriptionPotion
(@Nullable String baseName, StatusEffectInstance[] effects) Potion
(StatusEffectInstance[] effects) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
finishTranslationKey
(Optional<RegistryEntry<Potion>> potion, String prefix) boolean
requires
(FeatureFlag[] requiredFeatures) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
baseName
- Mappings:
Namespace Name Mixin selector named baseName
Lnet/minecraft/potion/Potion;baseName:Ljava/lang/String;
intermediary field_8954
Lnet/minecraft/class_1842;field_8954:Ljava/lang/String;
official a
Lcwq;a:Ljava/lang/String;
-
effects
- Mappings:
Namespace Name Mixin selector named effects
Lnet/minecraft/potion/Potion;effects:Ljava/util/List;
intermediary field_8955
Lnet/minecraft/class_1842;field_8955:Ljava/util/List;
official b
Lcwq;b:Ljava/util/List;
-
requiredFeatures
- Mappings:
Namespace Name Mixin selector named requiredFeatures
Lnet/minecraft/potion/Potion;requiredFeatures:Lnet/minecraft/resource/featuretoggle/FeatureSet;
intermediary field_50152
Lnet/minecraft/class_1842;field_50152:Lnet/minecraft/class_7699;
official c
Lcwq;c:Lcpn;
-
-
Constructor Details
-
Potion
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/potion/Potion;<init>([Lnet/minecraft/entity/effect/StatusEffectInstance;)V
intermediary <init>
Lnet/minecraft/class_1842;<init>([Lnet/minecraft/class_1293;)V
official <init>
Lcwq;<init>([Lbse;)V
-
Potion
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/potion/Potion;<init>(Ljava/lang/String;[Lnet/minecraft/entity/effect/StatusEffectInstance;)V
intermediary <init>
Lnet/minecraft/class_1842;<init>(Ljava/lang/String;[Lnet/minecraft/class_1293;)V
official <init>
Lcwq;<init>(Ljava/lang/String;[Lbse;)V
-
-
Method Details
-
requires
- Mappings:
Namespace Name Mixin selector named requires
Lnet/minecraft/potion/Potion;requires([Lnet/minecraft/resource/featuretoggle/FeatureFlag;)Lnet/minecraft/potion/Potion;
intermediary method_58671
Lnet/minecraft/class_1842;method_58671([Lnet/minecraft/class_7696;)Lnet/minecraft/class_1842;
official a
Lcwq;a([Lcpl;)Lcwq;
-
getRequiredFeatures
- Specified by:
getRequiredFeatures
in interfaceToggleableFeature
- Mappings:
Namespace Name Mixin selector named getRequiredFeatures
Lnet/minecraft/resource/featuretoggle/ToggleableFeature;getRequiredFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;
intermediary method_45322
Lnet/minecraft/class_7695;method_45322()Lnet/minecraft/class_7699;
official i
Lcpk;i()Lcpn;
-
finishTranslationKey
- Mappings:
Namespace Name Mixin selector named finishTranslationKey
Lnet/minecraft/potion/Potion;finishTranslationKey(Ljava/util/Optional;Ljava/lang/String;)Ljava/lang/String;
intermediary method_8051
Lnet/minecraft/class_1842;method_8051(Ljava/util/Optional;Ljava/lang/String;)Ljava/lang/String;
official a
Lcwq;a(Ljava/util/Optional;Ljava/lang/String;)Ljava/lang/String;
-
getEffects
- Mappings:
Namespace Name Mixin selector named getEffects
Lnet/minecraft/potion/Potion;getEffects()Ljava/util/List;
intermediary method_8049
Lnet/minecraft/class_1842;method_8049()Ljava/util/List;
official a
Lcwq;a()Ljava/util/List;
-
hasInstantEffect
public boolean hasInstantEffect()- Mappings:
Namespace Name Mixin selector named hasInstantEffect
Lnet/minecraft/potion/Potion;hasInstantEffect()Z
intermediary method_8050
Lnet/minecraft/class_1842;method_8050()Z
official b
Lcwq;b()Z
-