Class ExpandFoodProperties.ExpandFoodPropertiesBuilder

java.lang.Object
com.blamejared.crafttweaker.natives.food.ExpandFoodProperties.ExpandFoodPropertiesBuilder
Enclosing class:
ExpandFoodProperties

@ZenRegister public static class ExpandFoodProperties.ExpandFoodPropertiesBuilder extends Object
A builder to help create new food properties.
DocParam:
this FoodProperties.Builder.of()
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.food.FoodProperties.Builder
    alwaysEdible(net.minecraft.world.food.FoodProperties.Builder internal)
    Sets the always edible value of the food properties.
    static net.minecraft.world.food.FoodProperties
    build(net.minecraft.world.food.FoodProperties.Builder internal)
    Builds the food properties.
    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.
    static net.minecraft.world.food.FoodProperties.Builder
    fast(net.minecraft.world.food.FoodProperties.Builder internal)
    Sets the fast eat value of the food properties.
    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.
    static net.minecraft.world.food.FoodProperties.Builder
    of()
    Creates a new food properties builder.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.