public class EatGrassGoal extends Goal
Modifier and Type | Field and Description |
---|---|
private int |
eatingGrassTimer |
private World |
entityWorld |
private MobEntity |
grassEaterEntity |
private static java.util.function.Predicate<BlockState> |
IS_GRASS |
Constructor and Description |
---|
EatGrassGoal(MobEntity grassEaterEntityIn) |
Modifier and Type | Method and Description |
---|---|
int |
getEatingGrassTimer() |
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
tick() |
getMutexFlags, isPreemptible, setMutexFlags, toString
private static final java.util.function.Predicate<BlockState> IS_GRASS
private final MobEntity grassEaterEntity
private final World entityWorld
private int eatingGrassTimer
public EatGrassGoal(MobEntity grassEaterEntityIn)
public boolean shouldExecute()
shouldExecute
in class Goal
public void startExecuting()
startExecuting
in class Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public int getEatingGrassTimer()