summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/BlockLever.java
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-06-29 23:02:25 +0100
committerDinnerbone <dinnerbone@dinnerbone.com>2011-06-30 15:19:25 +0100
commita679e7f38025924dba3dd688ccb87e92306c4c3e (patch)
tree604a20c893873bef01a92eaa09d9309f32b7e29c /src/main/java/net/minecraft/server/BlockLever.java
parenta98c7ba2c706caa0ba83bddefa5ffecbe658ccd3 (diff)
downloadcraftbukkit-a679e7f38025924dba3dd688ccb87e92306c4c3e.tar
craftbukkit-a679e7f38025924dba3dd688ccb87e92306c4c3e.tar.gz
craftbukkit-a679e7f38025924dba3dd688ccb87e92306c4c3e.tar.lz
craftbukkit-a679e7f38025924dba3dd688ccb87e92306c4c3e.tar.xz
craftbukkit-a679e7f38025924dba3dd688ccb87e92306c4c3e.zip
Update to Minecraft 1.7
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockLever.java')
-rw-r--r--src/main/java/net/minecraft/server/BlockLever.java36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/main/java/net/minecraft/server/BlockLever.java b/src/main/java/net/minecraft/server/BlockLever.java
index 031ef09f..c7e205ae 100644
--- a/src/main/java/net/minecraft/server/BlockLever.java
+++ b/src/main/java/net/minecraft/server/BlockLever.java
@@ -8,7 +8,7 @@ public class BlockLever extends Block {
super(i, j, Material.ORIENTABLE);
}
- public AxisAlignedBB d(World world, int i, int j, int k) {
+ public AxisAlignedBB e(World world, int i, int j, int k) {
return null;
}
@@ -21,11 +21,11 @@ public class BlockLever extends Block {
}
public boolean canPlace(World world, int i, int j, int k, int l) {
- return l == 1 && world.d(i, j - 1, k) ? true : (l == 2 && world.d(i, j, k + 1) ? true : (l == 3 && world.d(i, j, k - 1) ? true : (l == 4 && world.d(i + 1, j, k) ? true : l == 5 && world.d(i - 1, j, k))));
+ return l == 1 && world.e(i, j - 1, k) ? true : (l == 2 && world.e(i, j, k + 1) ? true : (l == 3 && world.e(i, j, k - 1) ? true : (l == 4 && world.e(i + 1, j, k) ? true : l == 5 && world.e(i - 1, j, k))));
}
public boolean canPlace(World world, int i, int j, int k) {
- return world.d(i - 1, j, k) ? true : (world.d(i + 1, j, k) ? true : (world.d(i, j, k - 1) ? true : (world.d(i, j, k + 1) ? true : world.d(i, j - 1, k))));
+ return world.e(i - 1, j, k) ? true : (world.e(i + 1, j, k) ? true : (world.e(i, j, k - 1) ? true : (world.e(i, j, k + 1) ? true : world.e(i, j - 1, k))));
}
public void postPlace(World world, int i, int j, int k, int l) {
@@ -34,28 +34,28 @@ public class BlockLever extends Block {
i1 &= 7;
i1 = -1;
- if (l == 1 && world.d(i, j - 1, k)) {
+ if (l == 1 && world.e(i, j - 1, k)) {
i1 = 5 + world.random.nextInt(2);
}
- if (l == 2 && world.d(i, j, k + 1)) {
+ if (l == 2 && world.e(i, j, k + 1)) {
i1 = 4;
}
- if (l == 3 && world.d(i, j, k - 1)) {
+ if (l == 3 && world.e(i, j, k - 1)) {
i1 = 3;
}
- if (l == 4 && world.d(i + 1, j, k)) {
+ if (l == 4 && world.e(i + 1, j, k)) {
i1 = 2;
}
- if (l == 5 && world.d(i - 1, j, k)) {
+ if (l == 5 && world.e(i - 1, j, k)) {
i1 = 1;
}
if (i1 == -1) {
- this.b_(world, i, j, k, world.getData(i, j, k));
+ this.g(world, i, j, k, world.getData(i, j, k));
world.setTypeId(i, j, k, 0);
} else {
world.setData(i, j, k, i1 + j1);
@@ -67,32 +67,32 @@ public class BlockLever extends Block {
int i1 = world.getData(i, j, k) & 7;
boolean flag = false;
- if (!world.d(i - 1, j, k) && i1 == 1) {
+ if (!world.e(i - 1, j, k) && i1 == 1) {
flag = true;
}
- if (!world.d(i + 1, j, k) && i1 == 2) {
+ if (!world.e(i + 1, j, k) && i1 == 2) {
flag = true;
}
- if (!world.d(i, j, k - 1) && i1 == 3) {
+ if (!world.e(i, j, k - 1) && i1 == 3) {
flag = true;
}
- if (!world.d(i, j, k + 1) && i1 == 4) {
+ if (!world.e(i, j, k + 1) && i1 == 4) {
flag = true;
}
- if (!world.d(i, j - 1, k) && i1 == 5) {
+ if (!world.e(i, j - 1, k) && i1 == 5) {
flag = true;
}
- if (!world.d(i, j - 1, k) && i1 == 6) {
+ if (!world.e(i, j - 1, k) && i1 == 6) {
flag = true;
}
if (flag) {
- this.b_(world, i, j, k, world.getData(i, j, k));
+ this.g(world, i, j, k, world.getData(i, j, k));
world.setTypeId(i, j, k, 0);
}
}
@@ -100,7 +100,7 @@ public class BlockLever extends Block {
private boolean g(World world, int i, int j, int k) {
if (!this.canPlace(world, i, j, k)) {
- this.b_(world, i, j, k, world.getData(i, j, k));
+ this.g(world, i, j, k, world.getData(i, j, k));
world.setTypeId(i, j, k, 0);
return false;
} else {
@@ -198,7 +198,7 @@ public class BlockLever extends Block {
return (iblockaccess.getData(i, j, k) & 8) > 0;
}
- public boolean c(World world, int i, int j, int k, int l) {
+ public boolean d(World world, int i, int j, int k, int l) {
int i1 = world.getData(i, j, k);
if ((i1 & 8) == 0) {