net.minecraft.world.item.alchemy

public record PotionContents

cwu
net.minecraft.world.item.alchemy.PotionContents
net.minecraft.class_1844
net.minecraft.unmapped.C_xpqegwnr
net.minecraft.component.type.PotionContentsComponent
net.minecraft.component.type.PotionContentsComponent
net.minecraft.src.C_313529_
net.minecraft.world.item.alchemy.PotionContents

Field summary

Modifier and TypeField
private final Optional<Holder<Potion>>
d
potion
comp_2378
f_knatsbcz
potion
potion
f_317059_
private final Optional<Integer>
e
customColor
comp_2379
f_ucfokast
customColor
customColor
f_314927_
private final List<MobEffectInstance>
f
customEffects
comp_2380
f_glezgwrj
customEffects
customEffects
f_315369_
public static final PotionContents
a
EMPTY
field_49274
f_ujtaryrq
DEFAULT
DEFAULT
f_313984_
private static final Component
g
NO_EFFECT
field_25817
f_ikryleaj
NONE_TEXT
NO_EFFECT
f_315730_
private static final int
h
BASE_POTION_COLOR
field_49277
f_odxdsbyn
EFFECTLESS_COLOR
BASE_POTION_COLOR
f_315879_
private static final com.mojang.serialization.Codec<PotionContents>
i
FULL_CODEC
field_49749
f_nxpdykpa
BASE_CODEC
FULL_CODEC
f_316625_
public static final com.mojang.serialization.Codec<PotionContents>
b
CODEC
field_49275
f_pfmdfdye
CODEC
CODEC
f_315880_
public static final StreamCodec<RegistryFriendlyByteBuf, PotionContents>
c
STREAM_CODEC
field_49276
f_tfrgqjxe
PACKET_CODEC
PACKET_CODEC
f_315823_

Constructor summary

ModifierConstructor
public (Holder<Potion> potion)
public (Optional<Holder<Potion>> potion, Optional<Integer> customColor, List<MobEffectInstance> customEffects)

Method summary

Modifier and TypeMethod
public static ItemStack
a(cul arg0, jm<cws> arg1)
createItemStack(Item arg0, Holder<Potion> arg1)
method_57400(class_1792 arg0, class_6880<class_1842> arg1)
m_hcngmcff(C_vorddnax arg0, C_cjzoxshv<C_almkolgw> arg1)
createStack(Item item, RegistryEntry<Potion> potion)
createStack(Item item, Holder<Potion> value)
m_324840_(C_1381_ p_328254_, C_203228_<C_1440_> p_334269_)
public boolean
a(jm<cws> arg0)
is(Holder<Potion> arg0)
method_57401(class_6880<class_1842> arg0)
m_njngtrku(C_cjzoxshv<C_almkolgw> arg0)
matches(RegistryEntry<Potion> potion)
matches(Holder<Potion> potion)
m_323649_(C_203228_<C_1440_> arg0)
public Iterable<MobEffectInstance>
a()
getAllEffects()
method_57397()
m_hbrdlxey()
getEffects()
getEffects()
m_319638_()
public void
a(Consumer<brz> arg0)
forEachEffect(Consumer<MobEffectInstance> arg0)
method_57402(Consumer<class_1293> arg0)
m_rmuyvqjh(Consumer<C_wpfizwve> arg0)
forEachEffect(Consumer<StatusEffectInstance> effectConsumer)
forEachEffect(Consumer<StatusEffectInstance> consumer)
m_325077_(Consumer<C_498_> arg0)
public PotionContents
b(jm<cws> arg0)
withPotion(Holder<Potion> arg0)
method_57403(class_6880<class_1842> arg0)
m_ivpikusu(C_cjzoxshv<C_almkolgw> arg0)
with(RegistryEntry<Potion> potion)
withPotion(Holder<Potion> value)
m_324670_(C_203228_<C_1440_> arg0)
public PotionContents
a(brz arg0)
withEffectAdded(MobEffectInstance arg0)
method_57398(class_1293 arg0)
m_wxbmkbnn(C_wpfizwve arg0)
with(StatusEffectInstance customEffect)
withEffect(StatusEffectInstance element)
m_324984_(C_498_ arg0)
public int
b()
getColor()
method_8064()
m_nlaiylfj()
getColor()
getColor()
m_318943_()
public static int
c(jm<cws> arg0)
getColor(Holder<Potion> arg0)
method_8062(class_6880<class_1842> arg0)
m_lwwcxstm(C_cjzoxshv<C_almkolgw> arg0)
getColor(RegistryEntry<Potion> potion)
getColor(Holder<Potion> potion)
m_318851_(C_203228_<C_1440_> p_332484_)
public static int
a(Iterable<brz> arg0)
getColor(Iterable<MobEffectInstance> arg0)
method_8055(Iterable<class_1293> arg0)
m_linsoxal(Iterable<C_wpfizwve> arg0)
getColor(Iterable<StatusEffectInstance> effects)
getColor(Iterable<StatusEffectInstance> effects)
m_324402_(Iterable<C_498_> p_328528_)
public static OptionalInt
b(Iterable<brz> arg0)
getColorOptional(Iterable<MobEffectInstance> arg0)
method_58111(Iterable<class_1293> arg0)
m_oixxcdng(Iterable<C_wpfizwve> arg0)
mixColors(Iterable<StatusEffectInstance> effects)
getColorOptional(Iterable<StatusEffectInstance> effects)
m_320220_(Iterable<C_498_> p_331345_)
public boolean
c()
hasEffects()
method_57405()
m_wiewnncq()
hasEffects()
hasEffects()
m_323528_()
public List<MobEffectInstance>
d()
customEffects()
comp_2380()
m_mgymqmlt()
customEffects()
customEffects()
m_321614_()
public void
a(Consumer<wz> arg0, float arg1, float arg2)
addPotionTooltip(Consumer<Component> arg0, float arg1, float arg2)
method_47372(Consumer<class_2561> arg0, float arg1, float arg2)
m_ibnobein(Consumer<C_rdaqiwdt> arg0, float arg1, float arg2)
buildTooltip(Consumer<Text> textConsumer, float durationMultiplier, float tickRate)
buildTooltip(Consumer<Text> textConsumer, float durationMultiplier, float tickRate)
m_324933_(Consumer<C_4996_> p_336314_, float p_328696_, float arg2)
public static void
a(Iterable<brz> arg0, Consumer<wz> arg1, float arg2, float arg3)
addPotionTooltip(Iterable<MobEffectInstance> arg0, Consumer<Component> arg1, float arg2, float arg3)
method_8065(Iterable<class_1293> arg0, Consumer<class_2561> arg1, float arg2, float arg3)
m_wqrgzxka(Iterable<C_wpfizwve> arg0, Consumer<C_rdaqiwdt> arg1, float arg2, float arg3)
buildTooltip(Iterable<StatusEffectInstance> effects, Consumer<Text> textConsumer, float durationMultiplier, float tickRate)
buildTooltip(Iterable<StatusEffectInstance> effects, Consumer<Text> textConsumer, float durationMultiplier, float tickRate)
m_319937_(Iterable<C_498_> p_328255_, Consumer<C_4996_> p_336197_, float p_333725_, float p_333963_)
public Optional<Holder<Potion>>
e()
potion()
comp_2378()
m_mfeoxbnh()
potion()
potion()
f_317059_()
public Optional<Integer>
f()
customColor()
comp_2379()
m_ccilfhxl()
customColor()
customColor()
f_314927_()