History - net.minecraft.component.type.PotionContentsComponent

26.3

Names

Fields

Constructors

Methods

boolean (TagKey<Potion>): is, is, method_1_9791, matches

boolean (): isPotionWithoutCustomEffects, isPotionWithoutCustomEffects, method_1_9792, isStandardPotion

26.2

Names

Fields

Constructors

Methods

26.1.2

Names

Fields

Constructors

Methods

26.1.1

Names

Fields

Constructors

Methods

26.1

Names

dnr

net.minecraft.world.item.alchemy.PotionContents

net.minecraft.class_1844

net.minecraft.component.type.PotionContentsComponent

Fields

Optional<RegistryEntry<Potion>>: e, potion, comp_2378, potion, f_knatsbcz, potion, f_317059_

Optional<RegistryEntry<Potion>>: potion, potion, comp_2378, potion

Optional<Integer>: f, customColor, comp_2379, customColor, f_ucfokast, customColor, f_314927_

Optional<Integer>: customColor, customColor, comp_2379, customColor

List<StatusEffectInstance>: g, customEffects, comp_2380, customEffects, f_glezgwrj, customEffects, f_315369_

List<StatusEffectInstance>: customEffects, customEffects, comp_2380, customEffects

PotionContentsComponent: a, EMPTY, field_49274, DEFAULT, f_ujtaryrq, DEFAULT, f_313984_

PotionContentsComponent: EMPTY, EMPTY, field_49274, DEFAULT

Text: i, NO_EFFECT, field_25817, NONE_TEXT, f_ikryleaj, NO_EFFECT, f_315730_

Text: NO_EFFECT, NO_EFFECT, field_25817, NONE_TEXT

int: b, BASE_POTION_COLOR, field_49277, EFFECTLESS_COLOR, f_odxdsbyn, BASE_POTION_COLOR, f_315879_

int: BASE_POTION_COLOR, BASE_POTION_COLOR, field_49277, EFFECTLESS_COLOR

com.mojang.serialization.Codec<PotionContentsComponent>: j, FULL_CODEC, field_49749, BASE_CODEC, f_nxpdykpa, FULL_CODEC, f_316625_

com.mojang.serialization.Codec<PotionContentsComponent>: FULL_CODEC, FULL_CODEC, field_49749, BASE_CODEC

com.mojang.serialization.Codec<PotionContentsComponent>: c, CODEC, field_49275, CODEC, f_pfmdfdye, CODEC, f_315880_

com.mojang.serialization.Codec<PotionContentsComponent>: CODEC, CODEC, field_49275, CODEC

PacketCodec<RegistryByteBuf, PotionContentsComponent>: d, STREAM_CODEC, field_49276, PACKET_CODEC, f_tfrgqjxe, PACKET_CODEC, f_315823_

PacketCodec<RegistryByteBuf, PotionContentsComponent>: STREAM_CODEC, STREAM_CODEC, field_49276, PACKET_CODEC

Optional<String>: h, customName, comp_3209, customName, f_tghmnywx, customName, f_347326_

Optional<String>: customName, customName, comp_3209, customName

Constructors

Methods

ItemStack (Item, RegistryEntry<Potion>): a, createItemStack, method_57400, createStack, m_hcngmcff, createStack, m_324840_

ItemStack (Item, RegistryEntry<Potion>): createItemStack, createItemStack, method_57400, createStack

boolean (RegistryEntry<Potion>): a, is, method_57401, matches, m_njngtrku, matches, m_323649_

boolean (RegistryEntry<Potion>): is, is, method_57401, matches

Iterable<StatusEffectInstance> (): a, getAllEffects, method_57397, getEffects, m_hbrdlxey, getEffects, m_319638_

Iterable<StatusEffectInstance> (): getAllEffects, getAllEffects, method_57397, getEffects

PotionContentsComponent (RegistryEntry<Potion>): b, withPotion, method_57403, with, m_ivpikusu, withPotion, m_324670_

PotionContentsComponent (RegistryEntry<Potion>): withPotion, withPotion, method_57403, with

PotionContentsComponent (StatusEffectInstance): a, withEffectAdded, method_57398, with, m_wxbmkbnn, withEffect, m_324984_

PotionContentsComponent (StatusEffectInstance): withEffectAdded, withEffectAdded, method_57398, with

int (): b, getColor, method_8064, getColor, m_piarfhar, getColor, m_318943_

int (): getColor, getColor, method_8064, getColor

OptionalInt (Iterable<StatusEffectInstance>): a, getColorOptional, method_58111, mixColors, m_oixxcdng, getColorOrEmpty, m_320220_

OptionalInt (Iterable<StatusEffectInstance>): getColorOptional, getColorOptional, method_58111, mixColors

boolean (): c, hasEffects, method_57405, hasEffects, m_wiewnncq, hasEffects, m_323528_

boolean (): hasEffects, hasEffects, method_57405, hasEffects

List<StatusEffectInstance> (): d, customEffects, comp_2380, customEffects, m_mgymqmlt, customEffects, m_321614_

List<StatusEffectInstance> (): customEffects, customEffects, comp_2380, customEffects

void (Iterable<StatusEffectInstance>, Consumer<Text>, float, float): a, addPotionTooltip, method_8065, buildTooltip, m_vuxazscr, appendTooltip, m_319937_

void (Iterable<StatusEffectInstance>, Consumer<Text>, float, float): addPotionTooltip, addPotionTooltip, method_8065, buildTooltip

Optional<RegistryEntry<Potion>> (): e, potion, comp_2378, potion, m_mfeoxbnh, potion, f_317059_

Optional<RegistryEntry<Potion>> (): potion, potion, comp_2378, potion

Optional<Integer> (): f, customColor, comp_2379, customColor, m_ccilfhxl, customColor, f_314927_

Optional<Integer> (): customColor, customColor, comp_2379, customColor

Text (String): a, getName, method_64195, getName, m_zcrngtnv, getName, m_354630_

Text (String): getName, getName, method_64195, getName

void (World, LivingEntity, ItemStack, ConsumableComponent): a, onConsume, method_62831, onConsume, m_zuidvpkf, onConsume, m_352612_

void (World, LivingEntity, ItemStack, ConsumableComponent): onConsume, onConsume, method_62831, onConsume

Optional<String> (): g, customName, comp_3209, customName, m_mfcuuujm, customName, f_347326_

Optional<String> (): customName, customName, comp_3209, customName

int (int): a, getColorOr, method_65361, getColor, m_rzmobahm, getColorOrDefault, m_374376_

int (int): getColorOr, getColorOr, method_65361, getColor

void (Consumer<StatusEffectInstance>, float): a, forEachEffect, method_57402, forEachEffect, m_rmuyvqjh, forEachEffect, m_325077_

void (Consumer<StatusEffectInstance>, float): forEachEffect, forEachEffect, method_57402, forEachEffect

void (LivingEntity, float): a, applyToLivingEntity, method_62839, apply, m_dfyuvtuy, applyEffects, m_353101_

void (LivingEntity, float): applyToLivingEntity, applyToLivingEntity, method_62839, apply

MutableText (RegistryEntry<StatusEffect>, int): a, getPotionDescription, method_66698, getEffectText, m_zsvpzpes, createDescription, m_388982_

MutableText (RegistryEntry<StatusEffect>, int): getPotionDescription, getPotionDescription, method_66698, getEffectText

void (Item$TooltipContext, Consumer<Text>, TooltipType, ComponentsAccess): a, addToTooltip, method_57409, appendTooltip, m_eqoeoqpg, append, m_319025_

void (Item$TooltipContext, Consumer<Text>, TooltipType, ComponentsAccess): addToTooltip, addToTooltip, method_57409, appendTooltip

1.21.11

Names

djm

dnr

Fields

Constructors

Methods

1.21.10

Names

Fields

Constructors

Methods

1.21.9

Names

der

djm

Fields

Constructors

Methods

void (Iterable<StatusEffectInstance>, Consumer<Text>, float, float): a, addPotionTooltip, method_8065, buildTooltip, m_vuxazscr, m_319937_

void (Iterable<StatusEffectInstance>, Consumer<Text>, float, float): a, addPotionTooltip, method_8065, buildTooltip, m_vuxazscr, appendTooltip, m_319937_

MutableText (RegistryEntry<StatusEffect>, int): a, getPotionDescription, method_66698, getEffectText, m_zsvpzpes, m_388982_

MutableText (RegistryEntry<StatusEffect>, int): a, getPotionDescription, method_66698, getEffectText, m_zsvpzpes, createDescription, m_388982_

void (Item$TooltipContext, Consumer<Text>, TooltipType, ComponentsAccess): a, addToTooltip, method_57409, appendTooltip, m_eqoeoqpg, appendToTooltip, m_319025_

void (Item$TooltipContext, Consumer<Text>, TooltipType, ComponentsAccess): a, addToTooltip, method_57409, appendTooltip, m_eqoeoqpg, append, m_319025_

1.21.8

Names

Fields

Constructors

Methods

1.21.7

Names

Fields

Constructors

Methods

1.21.6

Names

dcg

der

Fields

Constructors

Methods

1.21.5

Names

cyp

dcg

Fields

Constructors

Methods

void (Consumer<StatusEffectInstance>): a, forEachEffect, method_57402, forEachEffect, m_rmuyvqjh, forEachEffect, m_325077_

void (Consumer<Text>, float, float): a, addPotionTooltip, method_47372, buildTooltip, m_ibnobein, buildTooltip, m_324933_

void (Iterable<StatusEffectInstance>, Consumer<Text>, float, float): a, addPotionTooltip, method_8065, buildTooltip, m_wqrgzxka, buildTooltip, m_319937_

void (Iterable<StatusEffectInstance>, Consumer<Text>, float, float): a, addPotionTooltip, method_8065, buildTooltip, m_vuxazscr, m_319937_

void (LivingEntity): a, applyToLivingEntity, method_62839, apply, m_dfyuvtuy, applyEffects, m_353101_

void (Consumer<StatusEffectInstance>, float): a, forEachEffect, method_57402, forEachEffect, m_rmuyvqjh, forEachEffect, m_325077_

void (LivingEntity, float): a, applyToLivingEntity, method_62839, apply, m_dfyuvtuy, applyEffects, m_353101_

MutableText (RegistryEntry<StatusEffect>, int): a, getPotionDescription, method_66698, getEffectText, m_zsvpzpes, m_388982_

void (Item$TooltipContext, Consumer<Text>, TooltipType, ComponentsAccess): a, addToTooltip, method_57409, appendTooltip, m_eqoeoqpg, appendToTooltip, m_319025_

1.21.4

Names

czo

cyp

Fields

Optional<RegistryEntry<Potion>>: d, potion, comp_2378, potion, f_knatsbcz, potion, f_317059_

Optional<RegistryEntry<Potion>>: e, potion, comp_2378, potion, f_knatsbcz, potion, f_317059_

Optional<Integer>: e, customColor, comp_2379, customColor, f_ucfokast, customColor, f_314927_

Optional<Integer>: f, customColor, comp_2379, customColor, f_ucfokast, customColor, f_314927_

List<StatusEffectInstance>: f, customEffects, comp_2380, customEffects, f_glezgwrj, customEffects, f_315369_

List<StatusEffectInstance>: g, customEffects, comp_2380, customEffects, f_glezgwrj, customEffects, f_315369_

Text: h, NO_EFFECT, field_25817, NONE_TEXT, f_ikryleaj, NO_EFFECT, f_315730_

Text: i, NO_EFFECT, field_25817, NONE_TEXT, f_ikryleaj, NO_EFFECT, f_315730_

int: i, BASE_POTION_COLOR, field_49277, EFFECTLESS_COLOR, f_odxdsbyn, BASE_POTION_COLOR, f_315879_

int: b, BASE_POTION_COLOR, field_49277, EFFECTLESS_COLOR, f_odxdsbyn, BASE_POTION_COLOR, f_315879_

com.mojang.serialization.Codec<PotionContentsComponent>: b, CODEC, field_49275, CODEC, f_pfmdfdye, CODEC, f_315880_

com.mojang.serialization.Codec<PotionContentsComponent>: c, CODEC, field_49275, CODEC, f_pfmdfdye, CODEC, f_315880_

PacketCodec<RegistryByteBuf, PotionContentsComponent>: c, STREAM_CODEC, field_49276, PACKET_CODEC, f_tfrgqjxe, PACKET_CODEC, f_315823_

PacketCodec<RegistryByteBuf, PotionContentsComponent>: d, STREAM_CODEC, field_49276, PACKET_CODEC, f_tfrgqjxe, PACKET_CODEC, f_315823_

Optional<String>: g, customName, comp_3209, customName, f_tghmnywx, customName, f_347326_

Optional<String>: h, customName, comp_3209, customName, f_tghmnywx, customName, f_347326_

Constructors

Methods

int (): b, getColor, method_8064, getColor, m_nlaiylfj, getColor, m_318943_

int (): b, getColor, method_8064, getColor, m_piarfhar, getColor, m_318943_

int (RegistryEntry<Potion>): c, getColor, method_8062, getColor, m_lwwcxstm, getColor, m_318851_

int (Iterable<StatusEffectInstance>): a, getColor, method_8055, getColor, m_linsoxal, getColor, m_324402_

OptionalInt (Iterable<StatusEffectInstance>): b, getColorOptional, method_58111, mixColors, m_oixxcdng, getColorOptional, m_320220_

OptionalInt (Iterable<StatusEffectInstance>): a, getColorOptional, method_58111, mixColors, m_oixxcdng, getColorOrEmpty, m_320220_

Text (String): a, getName, method_64195, getName, m_zcrngtnv, m_354630_

Text (String): a, getName, method_64195, getName, m_zcrngtnv, getName, m_354630_

void (LivingEntity): a, applyToLivingEntity, method_62839, apply, m_dfyuvtuy, m_dfyuvtuy, m_353101_

void (LivingEntity): a, applyToLivingEntity, method_62839, apply, m_dfyuvtuy, applyEffects, m_353101_

void (World, LivingEntity, ItemStack, ConsumableComponent): a, onConsume, method_62831, onConsume, m_zuidvpkf, m_zuidvpkf, m_352612_

void (World, LivingEntity, ItemStack, ConsumableComponent): a, onConsume, method_62831, onConsume, m_zuidvpkf, onConsume, m_352612_

int (int): a, getColorOr, method_65361, getColor, m_rzmobahm, getColorOrDefault, m_374376_

1.21.3

Names

cwu

czo

Fields

Text: g, NO_EFFECT, field_25817, NONE_TEXT, f_ikryleaj, NO_EFFECT, f_315730_

Text: h, NO_EFFECT, field_25817, NONE_TEXT, f_ikryleaj, NO_EFFECT, f_315730_

int: h, BASE_POTION_COLOR, field_49277, EFFECTLESS_COLOR, f_odxdsbyn, BASE_POTION_COLOR, f_315879_

int: i, BASE_POTION_COLOR, field_49277, EFFECTLESS_COLOR, f_odxdsbyn, BASE_POTION_COLOR, f_315879_

com.mojang.serialization.Codec<PotionContentsComponent>: i, FULL_CODEC, field_49749, BASE_CODEC, f_nxpdykpa, FULL_CODEC, f_316625_

com.mojang.serialization.Codec<PotionContentsComponent>: j, FULL_CODEC, field_49749, BASE_CODEC, f_nxpdykpa, FULL_CODEC, f_316625_

Optional<String>: g, customName, comp_3209, customName, f_tghmnywx, customName, f_347326_

Constructors

(Optional<RegistryEntry<Potion>>, Optional<Integer>, List<StatusEffectInstance>)

(Optional<RegistryEntry<Potion>>, Optional<Integer>, List<StatusEffectInstance>, Optional<String>)

Methods

Text (String): a, getName, method_64195, getName, m_zcrngtnv, m_354630_

void (LivingEntity): a, applyToLivingEntity, method_62839, apply, m_dfyuvtuy, m_dfyuvtuy, m_353101_

void (World, LivingEntity, ItemStack, ConsumableComponent): a, onConsume, method_62831, onConsume, m_zuidvpkf, m_zuidvpkf, m_352612_

Optional<String> (): g, customName, comp_3209, customName, m_mfcuuujm, customName, f_347326_

1.21.1

Names

Fields

Constructors

Methods

1.21

Names

cws

cwu

Fields

int: h, EMPTY_COLOR, field_30946, UNCRAFTABLE_COLOR, f_iuaftjtj, EMPTY_COLOR, f_315229_

int: i, BASE_POTION_COLOR, field_49277, EFFECTLESS_COLOR, f_odxdsbyn, BASE_POTION_COLOR, f_315879_

int: h, BASE_POTION_COLOR, field_49277, EFFECTLESS_COLOR, f_odxdsbyn, BASE_POTION_COLOR, f_315879_

com.mojang.serialization.Codec<PotionContentsComponent>: j, FULL_CODEC, field_49749, BASE_CODEC, f_nxpdykpa, FULL_CODEC, f_316625_

com.mojang.serialization.Codec<PotionContentsComponent>: i, FULL_CODEC, field_49749, BASE_CODEC, f_nxpdykpa, FULL_CODEC, f_316625_

Constructors

Methods

1.20.6

Names

cws

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_

Fields

Optional<RegistryEntry<Potion>>: d, potion, comp_2378, potion, f_knatsbcz, potion, f_317059_

Optional<Integer>: e, customColor, comp_2379, customColor, f_ucfokast, customColor, f_314927_

List<StatusEffectInstance>: f, customEffects, comp_2380, customEffects, f_glezgwrj, customEffects, f_315369_

PotionContentsComponent: a, EMPTY, field_49274, DEFAULT, f_ujtaryrq, DEFAULT, f_313984_

Text: g, NO_EFFECT, field_25817, NONE_TEXT, f_ikryleaj, NO_EFFECT, f_315730_

int: h, EMPTY_COLOR, field_30946, UNCRAFTABLE_COLOR, f_iuaftjtj, EMPTY_COLOR, f_315229_

int: i, BASE_POTION_COLOR, field_49277, EFFECTLESS_COLOR, f_odxdsbyn, BASE_POTION_COLOR, f_315879_

com.mojang.serialization.Codec<PotionContentsComponent>: j, FULL_CODEC, field_49749, BASE_CODEC, f_nxpdykpa, FULL_CODEC, f_316625_

com.mojang.serialization.Codec<PotionContentsComponent>: b, CODEC, field_49275, CODEC, f_pfmdfdye, CODEC, f_315880_

PacketCodec<RegistryByteBuf, PotionContentsComponent>: c, STREAM_CODEC, field_49276, PACKET_CODEC, f_tfrgqjxe, PACKET_CODEC, f_315823_

Constructors

(RegistryEntry<Potion>)

(Optional<RegistryEntry<Potion>>, Optional<Integer>, List<StatusEffectInstance>)

Methods

ItemStack (Item, RegistryEntry<Potion>): a, createItemStack, method_57400, createStack, m_hcngmcff, createStack, m_324840_

boolean (RegistryEntry<Potion>): a, is, method_57401, matches, m_njngtrku, matches, m_323649_

Iterable<StatusEffectInstance> (): a, getAllEffects, method_57397, getEffects, m_hbrdlxey, getEffects, m_319638_

void (Consumer<StatusEffectInstance>): a, forEachEffect, method_57402, forEachEffect, m_rmuyvqjh, forEachEffect, m_325077_

PotionContentsComponent (RegistryEntry<Potion>): b, withPotion, method_57403, with, m_ivpikusu, withPotion, m_324670_

PotionContentsComponent (StatusEffectInstance): a, withEffectAdded, method_57398, with, m_wxbmkbnn, withEffect, m_324984_

int (): b, getColor, method_8064, getColor, m_nlaiylfj, getColor, m_318943_

int (RegistryEntry<Potion>): c, getColor, method_8062, getColor, m_lwwcxstm, getColor, m_318851_

int (Iterable<StatusEffectInstance>): a, getColor, method_8055, getColor, m_linsoxal, getColor, m_324402_

OptionalInt (Iterable<StatusEffectInstance>): b, getColorOptional, method_58111, mixColors, m_oixxcdng, getColorOptional, m_320220_

boolean (): c, hasEffects, method_57405, hasEffects, m_wiewnncq, hasEffects, m_323528_

List<StatusEffectInstance> (): d, customEffects, comp_2380, customEffects, m_mgymqmlt, customEffects, m_321614_

void (Consumer<Text>, float, float): a, addPotionTooltip, method_47372, buildTooltip, m_ibnobein, buildTooltip, m_324933_

void (Iterable<StatusEffectInstance>, Consumer<Text>, float, float): a, addPotionTooltip, method_8065, buildTooltip, m_wqrgzxka, buildTooltip, m_319937_

Optional<RegistryEntry<Potion>> (): e, potion, comp_2378, potion, m_mfeoxbnh, potion, f_317059_

Optional<Integer> (): f, customColor, comp_2379, customColor, m_ccilfhxl, customColor, f_314927_