net.minecraft.component.type

public record FoodComponent

implements Consumable

cvy
net.minecraft.world.food.FoodProperties
net.minecraft.class_4174
net.minecraft.component.type.FoodComponent
net.minecraft.unmapped.C_cgikuact
net.minecraft.component.type.FoodComponent
net.minecraft.src.C_1220_

Field summary

Modifier and TypeField
private final int
c
nutrition
comp_2491
nutrition
f_zdhpbxsl
hunger
f_38723_
private final float
d
saturation
comp_2492
saturation
f_osnskjzv
saturation
f_315723_
private final boolean
e
canAlwaysEat
comp_2493
canAlwaysEat
f_jxddsfxy
alwaysEdible
f_38726_
public static final com.mojang.serialization.Codec<FoodComponent>
a
DIRECT_CODEC
field_49992
CODEC
f_mlhcrrha
CODEC
f_316600_
public static final PacketCodec<RegistryByteBuf, FoodComponent>
b
DIRECT_STREAM_CODEC
field_49993
PACKET_CODEC
f_oxkotzxa
PACKET_CODEC
f_317144_

Constructor summary

ModifierConstructor
public (int nutrition, float saturation, boolean canAlwaysEat)

Method summary

Modifier and TypeMethod
public void
a(dkj o, byf o, dak o, dcp arg3)
onConsume(Level arg0, LivingEntity arg1, ItemStack arg2, Consumable arg3)
method_62831(class_1937 arg0, class_1309 arg1, class_1799 arg2, class_10124 arg3)
onConsume(World arg0, LivingEntity arg1, ItemStack arg2, ConsumableComponent arg3)
m_zuidvpkf(C_cdctfzbn arg0, C_usxaxydn arg1, C_sddaxwyk arg2, C_ybwnbwdi arg3)
onConsume(World arg0, LivingEntity arg1, ItemStack arg2, ConsumableComponent arg3)
m_352612_(C_1596_ p_368675_, C_524_ p_365501_, C_1391_ p_363411_, C_345888_ arg3)
public int
a()
nutrition()
comp_2491()
nutrition()
m_lnyumqap()
nutrition()
f_38723_()
public float
b()
saturation()
comp_2492()
saturation()
m_soplqalp()
saturation()
f_315723_()
public boolean
c()
canAlwaysEat()
comp_2493()
canAlwaysEat()
m_tvsoxmcg()
alwaysEdible()
f_38726_()