net.minecraft.component.type

public record PotionContentsComponent

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

Field summary

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

Constructor summary

ModifierConstructor
public (RegistryEntry<Potion> potion)
public (Optional<RegistryEntry<Potion>> potion, Optional<Integer> customColor, List<StatusEffectInstance> customEffects)

Method summary

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