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 int
eatAnimationTick
private static java.util.function.Predicate<BlockState>
IS_TALL_GRASS
private World
level
private MobEntity
mob
-
Constructor Summary
Constructors Constructor Description EatGrassGoal(MobEntity p_i45314_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
int
getEatAnimationTick()
void
start()
void
stop()
void
tick()
-
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:
canContinueToUse
in classGoal
-
getEatAnimationTick
public int getEatAnimationTick()
-
-