Update for 1.1_01 renames.

We know these updates (can) break plugins bypassing Bukkit. They are needed for
smooth updates however. There will be another one right before before 1.1-R1.
This commit is contained in:
Erik Broes
2012-01-14 21:03:48 +01:00
parent 6495eee0c9
commit 61ec751ca1
85 changed files with 466 additions and 456 deletions

View File

@@ -18,9 +18,9 @@ public class Block {
public static final boolean[] n = new boolean[256];
public static final boolean[] o = new boolean[256];
public static final boolean[] isTileEntity = new boolean[256];
public static final int[] q = new int[256];
public static final int[] lightBlock = new int[256];
public static final boolean[] r = new boolean[256];
public static final int[] s = new int[256];
public static final int[] lightEmission = new int[256];
public static final boolean[] t = new boolean[256];
public static boolean[] u = new boolean[256];
public static final Block STONE = (new BlockStone(1, 1)).c(1.5F).b(10.0F).a(h).a("stone");
@@ -177,7 +177,7 @@ public class Block {
this.id = i;
this.a(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
o[i] = this.a();
q[i] = this.a() ? 255 : 0;
lightBlock[i] = this.a() ? 255 : 0;
r[i] = !material.blocksLight();
isTileEntity[i] = false;
}
@@ -201,12 +201,12 @@ public class Block {
}
protected Block g(int i) {
q[this.id] = i;
lightBlock[this.id] = i;
return this;
}
protected Block a(float f) {
s[this.id] = (int) (15.0F * f);
lightEmission[this.id] = (int) (15.0F * f);
return this;
}
@@ -485,7 +485,7 @@ public class Block {
public void postPlace(World world, int i, int j, int k, int l) {}
public void b(World world, int i, int j, int k, EntityHuman entityhuman) {}
public void attack(World world, int i, int j, int k, EntityHuman entityhuman) {}
public void a(World world, int i, int j, int k, Entity entity, Vec3D vec3d) {}
@@ -548,7 +548,7 @@ public class Block {
return this;
}
public String m() {
public String getName() {
return LocaleI18n.a(this.n() + ".name");
}