public class EntityAIEatGrass extends EntityAIBase
Modifier and Type | Field and Description |
---|---|
(package private) int |
eatingGrassTimer |
private World |
entityWorld |
private EntityLiving |
grassEaterEntity |
private static com.google.common.base.Predicate<IBlockState> |
IS_TALL_GRASS |
Constructor and Description |
---|
EntityAIEatGrass(EntityLiving grassEaterEntityIn) |
Modifier and Type | Method and Description |
---|---|
int |
getEatingGrassTimer() |
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
updateTask() |
getMutexBits, isInterruptible, setMutexBits
private static final com.google.common.base.Predicate<IBlockState> IS_TALL_GRASS
private final EntityLiving grassEaterEntity
private final World entityWorld
int eatingGrassTimer
public EntityAIEatGrass(EntityLiving grassEaterEntityIn)
public boolean shouldExecute()
shouldExecute
in class EntityAIBase
public void startExecuting()
startExecuting
in class EntityAIBase
public void resetTask()
resetTask
in class EntityAIBase
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class EntityAIBase
public int getEatingGrassTimer()
public void updateTask()
updateTask
in class EntityAIBase