Package net.minecraft.world.item.alchemy
Class Potion
java.lang.Object
net.minecraft.world.item.alchemy.Potion
- All Implemented Interfaces:
FeatureElement
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<MobEffectInstance> private final String
private FeatureFlagSet
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<Potion>> Fields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
Constructor Summary
ConstructorDescriptionPotion
(String p_43484_, MobEffectInstance... p_43485_) Potion
(MobEffectInstance... p_43487_) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
boolean
requiredFeatures
(FeatureFlag... p_338520_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
-
Field Details
-
CODEC
-
STREAM_CODEC
-
name
-
effects
-
requiredFeatures
-
-
Constructor Details
-
Potion
-
Potion
-
-
Method Details
-
requiredFeatures
-
requiredFeatures
- Specified by:
requiredFeatures
in interfaceFeatureElement
-
getName
-
getEffects
-
hasInstantEffects
public boolean hasInstantEffects()
-