Package net.minecraft.entity.ai.goal
Class EatGrassGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.EatGrassGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private static final Predicate<BlockState>
private final World
private final MobEntity
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
Field Details
-
IS_TALL_GRASS
-
mob
-
level
-
eatAnimationTick
private int eatAnimationTick
-
-
Constructor Details
-
EatGrassGoal
-
-
Method Details
-
canUse
public boolean canUse() -
start
public void start() -
stop
public void stop() -
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classGoal
-
getEatAnimationTick
public int getEatAnimationTick() -
tick
public void tick()
-