Update CraftBukkit to Minecraft 1.3.1

This commit is contained in:
feildmaster
2012-07-29 02:33:13 -05:00
committed by Travis Watkins
parent 08e2923bd4
commit a43d621c01
240 changed files with 10763 additions and 9150 deletions

View File

@@ -11,20 +11,21 @@ public class BlockStem extends BlockFlower {
protected BlockStem(int i, Block block) {
super(i, 111);
this.blockFruit = block;
this.a(true);
this.b(true);
float f = 0.125F;
this.a(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.25F, 0.5F + f);
this.a((CreativeModeTab) null);
}
protected boolean d(int i) {
protected boolean d_(int i) {
return i == Block.SOIL.id;
}
public void a(World world, int i, int j, int k, Random random) {
super.a(world, i, j, k, random);
public void b(World world, int i, int j, int k, Random random) {
super.b(world, i, j, k, random);
if (world.getLightLevel(i, j + 1, k) >= 9) {
float f = this.i(world, i, j, k);
float f = this.n(world, i, j, k);
if (random.nextInt((int) (25.0F / f) + 1) == 0) {
int l = world.getData(i, j, k);
@@ -79,11 +80,11 @@ public class BlockStem extends BlockFlower {
}
}
public void g(World world, int i, int j, int k) {
public void l(World world, int i, int j, int k) {
world.setData(i, j, k, 7);
}
private float i(World world, int i, int j, int k) {
private float n(World world, int i, int j, int k) {
float f = 1.0F;
int l = world.getTypeId(i, j, k - 1);
int i1 = world.getTypeId(i, j, k + 1);
@@ -141,7 +142,7 @@ public class BlockStem extends BlockFlower {
this.a(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, (float) this.maxY, 0.5F + f);
}
public int c() {
public int b() {
return 19;
}
@@ -174,10 +175,6 @@ public class BlockStem extends BlockFlower {
}
public int getDropType(int i, Random random, int j) {
if (i == 7) {
;
}
return -1;
}