net.minecraft.world.food

public record FoodProperties

cpr
net.minecraft.world.food.FoodProperties
net.minecraft.class_4174
net.minecraft.component.type.FoodComponent
net.minecraft.src.C_1220_
net.minecraft.world.food.FoodInfo

Field summary

Modifier and TypeField
private final int
c
nutrition
comp_2491
nutrition
f_38723_
private final float
d
saturation
comp_2492
saturation
f_315723_
private final boolean
e
canAlwaysEat
comp_2493
canAlwaysEat
f_38726_
private final float
f
eatSeconds
comp_2494
eatSeconds
f_314902_
private final Optional<ItemStack>
g
usingConvertsTo
comp_2794
usingConvertsTo
f_337181_
private final List<FoodProperties$PossibleEffect>
h
effects
comp_2495
effects
f_38728_
private static final float
i
DEFAULT_EAT_SECONDS
field_49994
DEFAULT_EAT_SECONDS
f_314525_
public static final com.mojang.serialization.Codec<FoodProperties>
a
DIRECT_CODEC
field_49992
CODEC
f_316600_
public static final StreamCodec<RegistryFriendlyByteBuf, FoodProperties>
b
DIRECT_STREAM_CODEC
field_49993
PACKET_CODEC
f_317144_

Constructor summary

ModifierConstructor
public (int nutrition, float saturation, boolean canAlwaysEat, float eatSeconds, Optional<ItemStack> usingConvertsTo, List<FoodProperties$PossibleEffect> effects)

Method summary

Modifier and TypeMethod
public int
a()
eatDurationTicks()
method_58399()
getEatTicks()
m_319390_()
public int
b()
nutrition()
comp_2491()
nutrition()
f_38723_()
public float
c()
saturation()
comp_2492()
saturation()
f_315723_()
public boolean
d()
canAlwaysEat()
comp_2493()
canAlwaysEat()
f_38726_()
public float
e()
eatSeconds()
comp_2494()
eatSeconds()
f_314902_()
public Optional<ItemStack>
f()
usingConvertsTo()
comp_2794()
usingConvertsTo()
f_337181_()
public List<FoodProperties$PossibleEffect>
g()
effects()
comp_2495()
effects()
f_38728_()