protected boolean w() {
return (isSitting()) || (g);
}public boolean damageEntity(Entity entity, int i) {
setSitting(false);
if ((entity != null) && (!(entity instanceof EntityHuman)) && (!(entity instanceof EntityArrow))) {
i = (i + 1) / 2;
}if (!super.damageEntity(entity, i)) {
return false;
}if ((!A()) && (!isAngry())) {
if ((entity instanceof EntityHuman)) {
setAngry(true);
target = entity;
}if (((entity instanceof EntityArrow)) && (((EntityArrow)entity).shooter != null)) {
entity = ((EntityArrow)entity).shooter;
}if ((entity instanceof EntityLiving)) {
List list = world.a(EntityWolf.class, AxisAlignedBB.b(locX, locY, locZ, locX + 1.0D, locY + 1.0D, locZ + 1.0D).b(16.0D, 4.0D, 16.0D));
Iterator iterator = list.iterator();
while (iterator.hasNext()) {
Entity entity1 = (Entity)iterator.next();
EntityWolf entitywolf = (EntityWolf)entity1;
if ((!entitywolf.A()) && (entitywolf.target == null)) {
entitywolf.target = entity;
if ((entity instanceof EntityHuman))
entitywolf.setAngry(true);