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 int
private int
private static Predicate<BlockState>
private Level
private Mob
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
Field Details
-
EAT_ANIMATION_TICKS
private static final int EAT_ANIMATION_TICKS- See Also:
- Constant Field Values
-
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()
-