public static class Diet.DietModule
extends java.lang.Object
| Constructor and Description |
|---|
DietModule(FoodType type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
applies(DinosaurEntity entity) |
boolean |
canEat(DinosaurEntity entity,
net.minecraft.item.Item item) |
FoodType |
getFoodType() |
Diet.DietModule |
withCondition(java.util.function.Function<DinosaurEntity,java.lang.Boolean> condition) |
public DietModule(FoodType type)
public Diet.DietModule withCondition(java.util.function.Function<DinosaurEntity,java.lang.Boolean> condition)
public boolean canEat(DinosaurEntity entity, net.minecraft.item.Item item)
public FoodType getFoodType()
public boolean applies(DinosaurEntity entity)