net.minecraft.world.item.alchemy

public class Potion

implements FeatureElement

czm
net.minecraft.world.item.alchemy.Potion
net.minecraft.class_1842
net.minecraft.potion.Potion
net.minecraft.world.item.alchemy.PotionRegistry

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<Holder<Potion>>
a
CODEC
field_51947
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, Holder<Potion>>
b
STREAM_CODEC
field_51948
PACKET_CODEC
private final String
c
name
field_8954
baseName
private final List<MobEffectInstance>
d
effects
field_8955
effects
private FeatureFlagSet
e
requiredFeatures
field_50152
requiredFeatures

Constructor summary

ModifierConstructor
public (String baseName, MobEffectInstance... effects)

Method summary

Modifier and TypeMethod
public Potion
a(csr... arg0)
requiredFeatures(FeatureFlag... arg0)
method_58671(class_7696... arg0)
requires(FeatureFlag... requiredFeatures)
public FeatureFlagSet
i()
requiredFeatures()
method_45322()
getRequiredFeatures()
public List<MobEffectInstance>
a()
getEffects()
method_8049()
getEffects()
public String
b()
name()
method_63990()
getBaseName()
public boolean
c()
hasInstantEffects()
method_8050()
hasInstantEffect()