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 -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.effect.MobEffectInstanceeffect(net.minecraft.world.food.FoodProperties.PossibleEffect internal) Gets the effect of the food properties possible effect.static net.minecraft.world.food.FoodProperties.PossibleEffectof(net.minecraft.world.effect.MobEffectInstance effect, float probability) Creates a new food properties possible effect.static floatprobability(net.minecraft.world.food.FoodProperties.PossibleEffect internal) Gets the probability of the food properties possible effect.
-
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.
-