summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTahg <tahgtahv@gmail.com>2011-02-08 17:10:13 -0500
committerTahg <tahgtahv@gmail.com>2011-02-08 17:10:48 -0500
commitb9a37399ae1f60af6332063bd0457ecc8f693f2f (patch)
tree92b52f2455d770910e7e8ed71d3c5f57779845ed /src
parent2d2f54cf0e6dbd316b32ccbc7b76e67d45571d45 (diff)
downloadcraftbukkit-b9a37399ae1f60af6332063bd0457ecc8f693f2f.tar
craftbukkit-b9a37399ae1f60af6332063bd0457ecc8f693f2f.tar.gz
craftbukkit-b9a37399ae1f60af6332063bd0457ecc8f693f2f.tar.lz
craftbukkit-b9a37399ae1f60af6332063bd0457ecc8f693f2f.tar.xz
craftbukkit-b9a37399ae1f60af6332063bd0457ecc8f693f2f.zip
changed fence behaviour
Diffstat (limited to 'src')
-rw-r--r--src/main/java/net/minecraft/server/BlockFence.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/BlockFence.java b/src/main/java/net/minecraft/server/BlockFence.java
new file mode 100644
index 00000000..7ed85898
--- /dev/null
+++ b/src/main/java/net/minecraft/server/BlockFence.java
@@ -0,0 +1,24 @@
+package net.minecraft.server;
+
+import java.util.ArrayList;
+
+public class BlockFence extends Block {
+
+ public BlockFence(int i, int j) {
+ super(i, j, Material.WOOD);
+ this.a(0, 0, 0, 1, (float) 1.5, 1); //Craftbukkit
+ }
+
+ //Removed by craftbukkit
+// public void a(World world, int i, int j, int k, AxisAlignedBB axisalignedbb, ArrayList arraylist) {
+// arraylist.add(AxisAlignedBB.b((double) i, (double) j, (double) k, (double) (i + 1), (double) j + 2.0D, (double) (k + 1)));
+// }
+
+ public boolean a(World world, int i, int j, int k) {
+ return world.getTypeId(i, j - 1, k) == this.id ? false : (!world.getMaterial(i, j - 1, k).isBuildable() ? false : super.a(world, i, j, k));
+ }
+
+ public boolean a() {
+ return false;
+ }
+}