Class ExpandFoodProperties.ExpandFoodPropertiesBuilder
java.lang.Object
com.blamejared.crafttweaker.natives.food.ExpandFoodProperties.ExpandFoodPropertiesBuilder
- Enclosing class:
ExpandFoodProperties
A builder to help create new food properties.
- DocParam:
- this FoodProperties.Builder.of()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.food.FoodProperties.BuilderalwaysEdible(net.minecraft.world.food.FoodProperties.Builder internal) Sets the always edible value of the food properties.static net.minecraft.world.food.FoodPropertiesbuild(net.minecraft.world.food.FoodProperties.Builder internal) Builds the food properties.static net.minecraft.world.food.FoodProperties.Buildereffect(net.minecraft.world.food.FoodProperties.Builder internal, net.minecraft.world.effect.MobEffectInstance effect, float probability) Adds an effect to the food properties.static net.minecraft.world.food.FoodProperties.Builderfast(net.minecraft.world.food.FoodProperties.Builder internal) Sets the fast eat value of the food properties.static net.minecraft.world.food.FoodProperties.Buildernutrition(net.minecraft.world.food.FoodProperties.Builder internal, int nutrition) Sets the nutrition value of the food properties.static net.minecraft.world.food.FoodProperties.Builderof()Creates a new food properties builder.static net.minecraft.world.food.FoodProperties.BuildersaturationModifier(net.minecraft.world.food.FoodProperties.Builder internal, float saturationModifier) Sets the saturation modifier of the food properties.
-
Constructor Details
-
ExpandFoodPropertiesBuilder
public ExpandFoodPropertiesBuilder()
-
-
Method Details
-
of
public static net.minecraft.world.food.FoodProperties.Builder of()Creates a new food properties builder.- Returns:
- The new food properties builder.
-
nutrition
public static net.minecraft.world.food.FoodProperties.Builder nutrition(net.minecraft.world.food.FoodProperties.Builder internal, int nutrition) Sets the nutrition value of the food properties.- Parameters:
nutrition- The new nutrition value.- Returns:
- this builder for chaining.
-
fast
public static net.minecraft.world.food.FoodProperties.Builder fast(net.minecraft.world.food.FoodProperties.Builder internal) Sets the fast eat value of the food properties.- Returns:
- this builder for chaining.
-
effect
public static net.minecraft.world.food.FoodProperties.Builder effect(net.minecraft.world.food.FoodProperties.Builder internal, net.minecraft.world.effect.MobEffectInstance effect, float probability) Adds an effect to the food properties.- Parameters:
effect- The effect to add.probability- The probability of the effect.- Returns:
- this builder for chaining.
-
saturationModifier
public static net.minecraft.world.food.FoodProperties.Builder saturationModifier(net.minecraft.world.food.FoodProperties.Builder internal, float saturationModifier) Sets the saturation modifier of the food properties.- Parameters:
saturationModifier- The new saturation modifier.- Returns:
- this builder for chaining.
-
build
public static net.minecraft.world.food.FoodProperties build(net.minecraft.world.food.FoodProperties.Builder internal) Builds the food properties.- Returns:
- The new food properties.
-
alwaysEdible
public static net.minecraft.world.food.FoodProperties.Builder alwaysEdible(net.minecraft.world.food.FoodProperties.Builder internal) Sets the always edible value of the food properties.- Returns:
- this builder for chaining.
-