public class EatGrassGoal extends Goal
Goal.Control| Modifier and Type | Field and Description |
|---|---|
private static Predicate<BlockState> |
GRASS_PREDICATE |
private MobEntity |
mob |
private int |
timer |
private World |
world |
| Constructor and Description |
|---|
EatGrassGoal(MobEntity mob) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStart() |
int |
getTimer() |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
void |
tick() |
canStop, getControls, setControls, toStringprivate static final Predicate<BlockState> GRASS_PREDICATE
private final MobEntity mob
private final World world
private int timer
public EatGrassGoal(MobEntity mob)
public boolean shouldContinue()
shouldContinue in class Goalpublic int getTimer()