net.minecraft.world.item.alchemy

public record PotionContents

cwu
net.minecraft.world.item.alchemy.PotionContents
net.minecraft.class_1844
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
potion
f_317059_
private final Optional<Integer>
e
customColor
comp_2379
customColor
f_314927_
private final List<MobEffectInstance>
f
customEffects
comp_2380
customEffects
f_315369_
public static final PotionContents
a
EMPTY
field_49274
DEFAULT
f_313984_
private static final Component
g
NO_EFFECT
field_25817
NONE_TEXT
f_315730_
private static final int
h
BASE_POTION_COLOR
field_49277
EFFECTLESS_COLOR
f_315879_
private static final com.mojang.serialization.Codec<PotionContents>
i
FULL_CODEC
field_49749
BASE_CODEC
f_316625_
public static final com.mojang.serialization.Codec<PotionContents>
b
CODEC
field_49275
CODEC
f_315880_
public static final StreamCodec<RegistryFriendlyByteBuf, PotionContents>
c
STREAM_CODEC
field_49276
PACKET_CODEC
f_315823_

Constructor summary

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

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)
createStack(Item item, RegistryEntry<Potion> potion)
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_323649_(C_203228_<C_1440_> arg0)
public Iterable<MobEffectInstance>
a()
getAllEffects()
method_57397()
getEffects()
m_319638_()
public void
a(Consumer<brz> arg0)
forEachEffect(Consumer<MobEffectInstance> arg0)
method_57402(Consumer<class_1293> arg0)
forEachEffect(Consumer<StatusEffectInstance> effectConsumer)
m_325077_(Consumer<C_498_> arg0)
public PotionContents
b(jm<cws> arg0)
withPotion(Holder<Potion> arg0)
method_57403(class_6880<class_1842> arg0)
with(RegistryEntry<Potion> potion)
m_324670_(C_203228_<C_1440_> arg0)
public PotionContents
a(brz arg0)
withEffectAdded(MobEffectInstance arg0)
method_57398(class_1293 arg0)
with(StatusEffectInstance customEffect)
m_324984_(C_498_ arg0)
public int
b()
getColor()
method_8064()
getColor()
m_318943_()
public static int
c(jm<cws> arg0)
getColor(Holder<Potion> arg0)
method_8062(class_6880<class_1842> arg0)
getColor(RegistryEntry<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)
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)
mixColors(Iterable<StatusEffectInstance> effects)
m_320220_(Iterable<C_498_> p_331345_)
public boolean
c()
hasEffects()
method_57405()
hasEffects()
m_323528_()
public List<MobEffectInstance>
d()
customEffects()
comp_2380()
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)
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)
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()
potion()
f_317059_()
public Optional<Integer>
f()
customColor()
comp_2379()
customColor()
f_314927_()