final Point position = getOwner().getPhysics().getPosition();
final int x = position.getFloorX();
final int y = position.getFloorY() - 1;
final int z = position.getFloorZ();
if (isBlockEatableTallGrass(x, y, z)) {
getOwner().getWorld().setBlockMaterial(x, y, z, VanillaMaterials.AIR, (short) 0, new EntityCause(getOwner()));
onGrassEaten();
} else if (getOwner().getWorld().getBlockMaterial(x, y, z) == VanillaMaterials.GRASS) {
getOwner().getWorld().setBlockMaterial(x, y, z, VanillaMaterials.DIRT, (short) 0, new EntityCause(getOwner()));
onGrassEaten();
}
}