net.minecraft.entity.ai.goal

public class EatGrassGoal

extends Goal

net.minecraft.world.entity.ai.goal.EatBlockGoal
net.minecraft.class_1345
net.minecraft.entity.ai.goal.EatGrassGoal

Field summary

Modifier and TypeField
private static final int
EAT_ANIMATION_TICKS
field_30203
MAX_TIMER
private static final Predicate<BlockState>
IS_EDIBLE
field_56536
EDIBLE_PREDICATE
private final MobEntity
mob
field_6424
mob
private final World
level
field_6421
world
private int
eatAnimationTick
field_6422
timer

Constructor summary

ModifierConstructor
public (MobEntity mob)

Method summary

Modifier and TypeMethod
public boolean
canUse()
method_6264()
canStart()
public void
start()
method_6269()
start()
public void
stop()
method_6270()
stop()
public boolean
canContinueToUse()
method_6266()
shouldContinue()
public int
getEatAnimationTick()
method_6258()
getTimer()
public void
tick()
method_6268()
tick()
private static boolean
lambda$static$0(BlockState arg0)
method_67520(class_2680 arg0)
method_67520(BlockState state)