Class ExpandFoodProperties.ExpandFoodPropertiesPossibleEffect

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

@ZenRegister public static class ExpandFoodProperties.ExpandFoodPropertiesPossibleEffect extends Object
Represents a possible effect of the food properties.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.effect.MobEffectInstance
    effect(net.minecraft.world.food.FoodProperties.PossibleEffect internal)
    Gets the effect of the food properties possible effect.
    static net.minecraft.world.food.FoodProperties.PossibleEffect
    of(net.minecraft.world.effect.MobEffectInstance effect, float probability)
    Creates a new food properties possible effect.
    static float
    probability(net.minecraft.world.food.FoodProperties.PossibleEffect internal)
    Gets the probability of the food properties possible effect.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpandFoodPropertiesPossibleEffect

      public ExpandFoodPropertiesPossibleEffect()
  • Method Details

    • of

      public static net.minecraft.world.food.FoodProperties.PossibleEffect of(net.minecraft.world.effect.MobEffectInstance effect, float probability)
      Creates a new food properties possible effect.
      Parameters:
      effect - The effect.
      probability - The probability.
      Returns:
      The new food properties possible effect.
    • effect

      public static net.minecraft.world.effect.MobEffectInstance effect(net.minecraft.world.food.FoodProperties.PossibleEffect internal)
      Gets the effect of the food properties possible effect.
      Returns:
      The effect.
    • probability

      public static float probability(net.minecraft.world.food.FoodProperties.PossibleEffect internal)
      Gets the probability of the food properties possible effect.
      Returns:
      The probability.