Update to Minecraft 1.9

This commit is contained in:
md_5
2016-03-01 08:32:46 +11:00
parent e1ebe524a7
commit aa008dff0f
305 changed files with 6684 additions and 6105 deletions

View File

@@ -1,6 +1,6 @@
--- a/net/minecraft/server/PathfinderGoalNearestAttackableTarget.java
+++ b/net/minecraft/server/PathfinderGoalNearestAttackableTarget.java
@@ -60,7 +60,7 @@
@@ -34,7 +34,7 @@
}
public boolean apply(Object object) {
@@ -9,7 +9,34 @@
}
};
}
@@ -83,7 +83,7 @@
@@ -49,11 +49,11 @@
return false;
} else {
Collections.sort(list, this.b);
- this.d = (EntityLiving) list.get(0);
+ this.d = (T) list.get(0); // CraftBukkit - fix decompile error
return true;
}
} else {
- this.d = this.e.world.a(this.e.locX, this.e.locY + (double) this.e.getHeadHeight(), this.e.locZ, this.f(), this.f(), new Function() {
+ this.d = (T) this.e.world.a(this.e.locX, this.e.locY + (double) this.e.getHeadHeight(), this.e.locZ, this.f(), this.f(), new Function<EntityHuman, Double>() { // CraftBukkit - fix decompile error
public Double a(EntityHuman entityhuman) {
ItemStack itemstack = entityhuman.getEquipment(EnumItemSlot.HEAD);
@@ -71,10 +71,10 @@
return Double.valueOf(1.0D);
}
- public Object apply(Object object) {
+ public Double apply(EntityHuman object) { // CraftBukkit - fix decompile error
return this.a((EntityHuman) object);
}
- }, this.c);
+ }, (Predicate<EntityHuman>) this.c); // CraftBukkit - fix decompile error
return this.d != null;
}
}
@@ -84,7 +84,7 @@
}
public void c() {
@@ -18,7 +45,7 @@
super.c();
}
@@ -102,7 +102,7 @@
@@ -103,7 +103,7 @@
return d0 < d1 ? -1 : (d0 > d1 ? 1 : 0);
}