Package net.minecraft.entity.ai.goal
Class EatGrassGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.EatGrassGoal
-
public class EatGrassGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description private inteatAnimationTickprivate static java.util.function.Predicate<BlockState>IS_TALL_GRASSprivate Worldlevelprivate MobEntitymob
-
Constructor Summary
Constructors Constructor Description EatGrassGoal(MobEntity p_i45314_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanContinueToUse()booleancanUse()intgetEatAnimationTick()voidstart()voidstop()voidtick()-
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
-
-
-
Field Detail
-
IS_TALL_GRASS
private static final java.util.function.Predicate<BlockState> IS_TALL_GRASS
-
mob
private final MobEntity mob
-
level
private final World level
-
eatAnimationTick
private int eatAnimationTick
-
-
Constructor Detail
-
EatGrassGoal
public EatGrassGoal(MobEntity p_i45314_1_)
-
-
Method Detail
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUsein classGoal
-
getEatAnimationTick
public int getEatAnimationTick()
-
-