public final class FoodEffect
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Type<FoodEffect[]> |
ARRAY_TYPE |
static Type<FoodEffect> |
TYPE |
Constructor and Description |
---|
FoodEffect(PotionEffect effect,
float probability) |
Modifier and Type | Method and Description |
---|---|
PotionEffect |
effect() |
float |
probability() |
public static final Type<FoodEffect> TYPE
public static final Type<FoodEffect[]> ARRAY_TYPE
public FoodEffect(PotionEffect effect, float probability)
public PotionEffect effect()
public float probability()