Class EatBlockGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.EatBlockGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private int
private static final Predicate<BlockState>
private final Level
private final Mob
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString
-
Field Details
-
EAT_ANIMATION_TICKS
private static final int EAT_ANIMATION_TICKS- See Also:
-
IS_TALL_GRASS
-
mob
-
level
-
eatAnimationTick
private int eatAnimationTick
-
-
Constructor Details
-
EatBlockGoal
-
-
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()
-