net.minecraft.world.item.alchemy

public class Potion

implements FeatureElement

cws
net.minecraft.world.item.alchemy.Potion
net.minecraft.class_1842
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
CODEC
f_337035_
public static final StreamCodec<RegistryFriendlyByteBuf, Holder<Potion>>
b
STREAM_CODEC
field_51948
PACKET_CODEC
f_337510_
private final String
c
name
field_8954
baseName
f_43481_
private final List<MobEffectInstance>
d
effects
field_8955
effects
f_43482_
private FeatureFlagSet
e
requiredFeatures
field_50152
requiredFeatures
f_315259_

Constructor summary

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

Method summary

Modifier and TypeMethod
public Potion
a(cpj... arg0)
requiredFeatures(FeatureFlag... arg0)
method_58671(class_7696... arg0)
requires(FeatureFlag... requiredFeatures)
m_319158_(C_243544_... arg0)
public FeatureFlagSet
i()
requiredFeatures()
method_45322()
getRequiredFeatures()
m_245183_()
public static String
a(Optional<jm<cws>> arg0, String arg1)
getName(Optional<Holder<Potion>> arg0, String arg1)
method_8051(Optional<class_6880<class_1842>> arg0, String arg1)
finishTranslationKey(Optional<RegistryEntry<Potion>> potion, String prefix)
m_43492_(Optional<C_203228_<C_1440_>> p_332314_, String p_43493_)
public List<MobEffectInstance>
a()
getEffects()
method_8049()
getEffects()
m_43488_()
public boolean
b()
hasInstantEffects()
method_8050()
hasInstantEffect()
m_43491_()