public boolean matches(ItemStack stack) {
return stack.getItem() instanceof ItemSword;
}
}));
} else {
startDelegateAI(new AIRobotSearchEntity(robot, new IEntityFilter() {
@Override
public boolean matches(Entity entity) {
return entity instanceof EntityAnimal;
}
}, 250, robot.getZoneToWork()));