Class EatBlockGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.EatBlockGoal
- 
Nested Class Summary
 - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate intprivate static final Predicate<BlockState>private final Levelprivate final Mob - 
Constructor Summary
Constructors - 
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:
 canContinueToUsein classGoal
 - 
getEatAnimationTick
public int getEatAnimationTick() - 
tick
public void tick() 
 -