net.minecraft.world.food

public record FoodProperties

cpt
net.minecraft.world.food.FoodProperties
net.minecraft.class_4174
net.minecraft.unmapped.C_cgikuact
net.minecraft.component.type.FoodComponent
net.minecraft.item.FoodComponent
net.minecraft.src.C_1220_
net.minecraft.world.food.FoodInfo

Field summary

Modifier and TypeField
private final int
c
nutrition
comp_2491
f_zdhpbxsl
nutrition
hunger
f_38723_
private final float
d
saturation
comp_2492
f_osnskjzv
saturation
saturation
f_315723_
private final boolean
e
canAlwaysEat
comp_2493
f_jxddsfxy
canAlwaysEat
alwaysEdible
f_38726_
private final float
f
eatSeconds
comp_2494
f_cunuuycv
eatSeconds
eatSeconds
f_314902_
private final List<FoodProperties$PossibleEffect>
g
effects
comp_2495
f_sfnvysjq
effects
statusEffects
f_38728_
private static final float
h
DEFAULT_EAT_SECONDS
field_49994
f_xqccrssq
DEFAULT_EAT_SECONDS
f_314525_
public static final com.mojang.serialization.Codec<FoodProperties>
a
DIRECT_CODEC
field_49992
f_mlhcrrha
CODEC
CODEC
f_316600_
public static final StreamCodec<RegistryFriendlyByteBuf, FoodProperties>
b
DIRECT_STREAM_CODEC
field_49993
f_oxkotzxa
PACKET_CODEC
PACKET_CODEC
f_317144_

Constructor summary

ModifierConstructor
public (int hunger, float saturationModifier, boolean meat, float eatSeconds, List<FoodProperties$PossibleEffect> statusEffects)

Method summary

Modifier and TypeMethod
public int
a()
eatDurationTicks()
method_58399()
m_rtewkjll()
getEatTicks()
m_319390_()
public int
b()
nutrition()
comp_2491()
m_lnyumqap()
nutrition()
nutrition()
f_38723_()
public float
c()
saturation()
comp_2492()
m_soplqalp()
saturation()
saturation()
f_315723_()
public boolean
d()
canAlwaysEat()
comp_2493()
m_tvsoxmcg()
canAlwaysEat()
isAlwaysEdible()
f_38726_()
public float
e()
eatSeconds()
comp_2494()
m_mnqrjzqw()
eatSeconds()
eatSeconds()
f_314902_()
public List<FoodProperties$PossibleEffect>
f()
effects()
comp_2495()
m_zzdcuusm()
effects()
effects()
f_38728_()