net.minecraft.world.item.alchemy

public class Potion

implements FeatureElement

cyn
net.minecraft.world.item.alchemy.Potion
net.minecraft.class_1842
net.minecraft.unmapped.C_vdaqizos
net.minecraft.potion.Potion
net.minecraft.potion.Potion
net.minecraft.src.C_1440_
net.minecraft.world.item.alchemy.PotionRegistry

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<Holder<Potion>>
a
CODEC
field_51947
f_ebmhatwi
CODEC
CODEC
f_337035_
public static final StreamCodec<RegistryFriendlyByteBuf, Holder<Potion>>
b
STREAM_CODEC
field_51948
f_usdisnxc
PACKET_CODEC
PACKET_CODEC
f_337510_
private final String
c
name
field_8954
f_pmlnggum
baseName
name
f_43481_
private final List<MobEffectInstance>
d
effects
field_8955
f_xezwortj
effects
effects
f_43482_
private FeatureFlagSet
e
requiredFeatures
field_50152
f_lduxwvub
requiredFeatures
requiredFlags
f_315259_

Constructor summary

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

Method summary

Modifier and TypeMethod
public Potion
a(crs... arg0)
requiredFeatures(FeatureFlag... arg0)
method_58671(class_7696... arg0)
m_mlidusgp(C_kksdgidr... arg0)
requires(FeatureFlag... requiredFeatures)
setRequiredFlags(FeatureFlag... a)
m_319158_(C_243544_... arg0)
public FeatureFlagSet
i()
requiredFeatures()
method_45322()
m_gsnyyecf()
getRequiredFeatures()
getRequiredFlags()
m_245183_()
public List<MobEffectInstance>
a()
getEffects()
method_8049()
m_ypznrdpf()
getEffects()
getEffects()
m_43488_()
public String
b()
name()
method_63990()
m_pkyerjgy()
getBaseName()
getName()
m_355490_()
public boolean
c()
hasInstantEffects()
method_8050()
m_mxbgjtgk()
hasInstantEffect()
hasInstantEffect()
m_43491_()