diff options
author | feildmaster <admin@feildmaster.com> | 2012-07-29 02:33:13 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2012-08-02 04:58:50 -0500 |
commit | a43d621c0138110d2ec362b2eaa8f938f241bb49 (patch) | |
tree | d2ebc0d7a4a969d3257b1b958236428a24117eb1 /src/main/java/net/minecraft/server/BlockCrops.java | |
parent | 08e2923bd4282579ca0cf7af0e6207cba0591e5c (diff) | |
download | craftbukkit-a43d621c0138110d2ec362b2eaa8f938f241bb49.tar craftbukkit-a43d621c0138110d2ec362b2eaa8f938f241bb49.tar.gz craftbukkit-a43d621c0138110d2ec362b2eaa8f938f241bb49.tar.lz craftbukkit-a43d621c0138110d2ec362b2eaa8f938f241bb49.tar.xz craftbukkit-a43d621c0138110d2ec362b2eaa8f938f241bb49.zip |
Update CraftBukkit to Minecraft 1.3.1
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockCrops.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockCrops.java | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/main/java/net/minecraft/server/BlockCrops.java b/src/main/java/net/minecraft/server/BlockCrops.java index dfdbc746..58d31cc9 100644 --- a/src/main/java/net/minecraft/server/BlockCrops.java +++ b/src/main/java/net/minecraft/server/BlockCrops.java @@ -7,23 +7,24 @@ public class BlockCrops extends BlockFlower { protected BlockCrops(int i, int j) { super(i, j); this.textureId = j; - this.a(true); + this.b(true); float f = 0.5F; 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) { int l = world.getData(i, j, k); if (l < 7) { - float f = this.i(world, i, j, k); + float f = this.l(world, i, j, k); if (random.nextInt((int) (25.0F / f) + 1) == 0) { org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, i, j, k, this.id, ++l); // CraftBukkit @@ -32,11 +33,11 @@ public class BlockCrops extends BlockFlower { } } - public void g(World world, int i, int j, int k) { + public void c_(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 l(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); @@ -85,7 +86,7 @@ public class BlockCrops extends BlockFlower { return this.textureId + j; } - public int c() { + public int b() { return 6; } |