Package net.minecraft.potion
Class Potion
java.lang.Object
net.minecraft.potion.Potion
- All Implemented Interfaces:
ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/potion/Potionintermediary net/minecraft/class_1842official cyn
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringstatic final com.mojang.serialization.Codec<RegistryEntry<Potion>> private final List<StatusEffectInstance> static final PacketCodec<RegistryByteBuf, RegistryEntry<Potion>> private FeatureSetFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/potion/Potion;CODEC:Lcom/mojang/serialization/Codec;intermediary field_51947Lnet/minecraft/class_1842;field_51947:Lcom/mojang/serialization/Codec;official aLcyn;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/potion/Potion;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_51948Lnet/minecraft/class_1842;field_51948:Lnet/minecraft/class_9139;official bLcyn;b:Lyn;
-
baseName
- Mappings:
Namespace Name Mixin selector named baseNameLnet/minecraft/potion/Potion;baseName:Ljava/lang/String;intermediary field_8954Lnet/minecraft/class_1842;field_8954:Ljava/lang/String;official cLcyn;c:Ljava/lang/String;
-
effects
- Mappings:
Namespace Name Mixin selector named effectsLnet/minecraft/potion/Potion;effects:Ljava/util/List;intermediary field_8955Lnet/minecraft/class_1842;field_8955:Ljava/util/List;official dLcyn;d:Ljava/util/List;
-
requiredFeatures
- Mappings:
Namespace Name Mixin selector named requiredFeaturesLnet/minecraft/potion/Potion;requiredFeatures:Lnet/minecraft/resource/featuretoggle/FeatureSet;intermediary field_50152Lnet/minecraft/class_1842;field_50152:Lnet/minecraft/class_7699;official eLcyn;e:Lcru;
-
-
Constructor Details
-
Potion
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/potion/Potion;<init>(Ljava/lang/String;[Lnet/minecraft/entity/effect/StatusEffectInstance;)Vintermediary <init>Lnet/minecraft/class_1842;<init>(Ljava/lang/String;[Lnet/minecraft/class_1293;)Vofficial <init>Lcyn;<init>(Ljava/lang/String;[Lbtr;)V
-
-
Method Details
-
requires
- Mappings:
Namespace Name Mixin selector named requiresLnet/minecraft/potion/Potion;requires([Lnet/minecraft/resource/featuretoggle/FeatureFlag;)Lnet/minecraft/potion/Potion;intermediary method_58671Lnet/minecraft/class_1842;method_58671([Lnet/minecraft/class_7696;)Lnet/minecraft/class_1842;official aLcyn;a([Lcrs;)Lcyn;
-
getRequiredFeatures
- Specified by:
getRequiredFeaturesin interfaceToggleableFeature- Mappings:
Namespace Name Mixin selector named getRequiredFeaturesLnet/minecraft/resource/featuretoggle/ToggleableFeature;getRequiredFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;intermediary method_45322Lnet/minecraft/class_7695;method_45322()Lnet/minecraft/class_7699;official iLcrr;i()Lcru;
-
getEffects
- Mappings:
Namespace Name Mixin selector named getEffectsLnet/minecraft/potion/Potion;getEffects()Ljava/util/List;intermediary method_8049Lnet/minecraft/class_1842;method_8049()Ljava/util/List;official aLcyn;a()Ljava/util/List;
-
getBaseName
- Mappings:
Namespace Name Mixin selector named getBaseNameLnet/minecraft/potion/Potion;getBaseName()Ljava/lang/String;intermediary method_63990Lnet/minecraft/class_1842;method_63990()Ljava/lang/String;official bLcyn;b()Ljava/lang/String;
-
hasInstantEffect
public boolean hasInstantEffect()- Mappings:
Namespace Name Mixin selector named hasInstantEffectLnet/minecraft/potion/Potion;hasInstantEffect()Zintermediary method_8050Lnet/minecraft/class_1842;method_8050()Zofficial cLcyn;c()Z
-