History - net.minecraft.component.type.PotionContentsComponent
26.3-snapshot-3
Names
Fields
Constructors
Methods
26.3-snapshot-2
Names
Fields
Constructors
Methods
26.3-snapshot-1
Names
Fields
Constructors
Methods
26.2
Names
Fields
Constructors
Methods
26.1.2
Names
Fields
Constructors
Methods
26.1.1
Names
Fields
Constructors
Methods
26.1
Names
Fields
Constructors
Methods
void (List, RegistryEntry, EntityAttributeModifier): lambda$addPotionTooltip$4, method_55762, method_55762
void (List, RegistryEntry, EntityAttributeModifier): lambda$addPotionTooltip$0, method_55762, method_55762
void (ServerWorld, PlayerEntity, LivingEntity, StatusEffectInstance): lambda$applyToLivingEntity$3, method_62840, method_62840
void (ServerWorld, PlayerEntity, LivingEntity, StatusEffectInstance): lambda$applyToLivingEntity$0, method_62840, method_62840
Optional (): lambda$getName$2, method_64197, method_64197
Optional (): lambda$getName$0, method_64197, method_64197
1.21.11_unobfuscated
Names
net.minecraft.world.item.alchemy.PotionContents
net.minecraft.class_1844
net.minecraft.component.type.PotionContentsComponent
Fields
Optional<RegistryEntry<Potion>>: potion, comp_2378, potion
Optional<Integer>: customColor, comp_2379, customColor
List<StatusEffectInstance>: customEffects, comp_2380, customEffects
Optional<String>: customName, comp_3209, customName
PotionContentsComponent: EMPTY, field_49274, DEFAULT
Text: NO_EFFECT, field_25817, NONE_TEXT
int: BASE_POTION_COLOR, field_49277, EFFECTLESS_COLOR
com.mojang.serialization.Codec<PotionContentsComponent>: FULL_CODEC, field_49749, BASE_CODEC
com.mojang.serialization.Codec<PotionContentsComponent>: CODEC, field_49275, CODEC
PacketCodec<RegistryByteBuf, PotionContentsComponent>: STREAM_CODEC, field_49276, PACKET_CODEC
Constructors
(Optional<RegistryEntry<Potion>>, Optional<Integer>, List<StatusEffectInstance>, Optional<String>)
Methods
ItemStack (Item, RegistryEntry<Potion>): createItemStack, method_57400, createStack
boolean (RegistryEntry<Potion>): is, method_57401, matches
Iterable<StatusEffectInstance> (): getAllEffects, method_57397, getEffects
void (Consumer<StatusEffectInstance>, float): forEachEffect, method_57402, forEachEffect
PotionContentsComponent (RegistryEntry<Potion>): withPotion, method_57403, with
PotionContentsComponent (StatusEffectInstance): withEffectAdded, method_57398, with
int (): getColor, method_8064, getColor
int (int): getColorOr, method_65361, getColor
Text (String): getName, method_64195, getName
OptionalInt (Iterable<StatusEffectInstance>): getColorOptional, method_58111, mixColors
boolean (): hasEffects, method_57405, hasEffects
List<StatusEffectInstance> (): customEffects, comp_2380, customEffects
void (LivingEntity, float): applyToLivingEntity, method_62839, apply
void (Iterable<StatusEffectInstance>, Consumer<Text>, float, float): addPotionTooltip, method_8065, buildTooltip
MutableText (RegistryEntry<StatusEffect>, int): getPotionDescription, method_66698, getEffectText
void (World, LivingEntity, ItemStack, ConsumableComponent): onConsume, method_62831, onConsume
void (Item$TooltipContext, Consumer<Text>, TooltipType, ComponentsAccess): addToTooltip, method_57409, appendTooltip
Optional<RegistryEntry<Potion>> (): potion, comp_2378, potion
Optional<Integer> (): customColor, comp_2379, customColor
Optional<String> (): customName, comp_3209, customName
void (List, RegistryEntry, EntityAttributeModifier): lambda$addPotionTooltip$4, method_55762, method_55762
void (ServerWorld, PlayerEntity, LivingEntity, StatusEffectInstance): lambda$applyToLivingEntity$3, method_62840, method_62840
Optional (): lambda$getName$2, method_64197, method_64197
String (RegistryEntry): lambda$getName$1, method_64196, method_64196
com.mojang.datafixers.kinds.App (com.mojang.serialization.codecs.RecordCodecBuilder$Instance): lambda$static$0, method_57399, method_57399