Uses of Record Class
net.minecraft.world.food.FoodProperties.PossibleEffect
-
Uses of FoodProperties.PossibleEffect in net.minecraft.world.food
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<FoodProperties.PossibleEffect> FoodProperties.PossibleEffect.CODEC
private final com.google.common.collect.ImmutableList.Builder
<FoodProperties.PossibleEffect> FoodProperties.Builder.effects
private final List
<FoodProperties.PossibleEffect> FoodProperties.effects
The field for theeffects
record component.static final StreamCodec
<RegistryFriendlyByteBuf, FoodProperties.PossibleEffect> FoodProperties.PossibleEffect.STREAM_CODEC
Modifier and TypeMethodDescriptionFoodProperties.effects()
Returns the value of theeffects
record component.ModifierConstructorDescriptionFoodProperties
(int nutrition, float saturation, boolean canAlwaysEat, float eatSeconds, Optional<ItemStack> usingConvertsTo, List<FoodProperties.PossibleEffect> effects) Creates an instance of aFoodProperties
record class.