diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-14 13:31:10 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-14 13:31:10 +0000 |
commit | 2761b598452d992b05a384528b54298ab1166456 (patch) | |
tree | fae206cadbc7acd2607b42ac9dc3d962dcaa795a /src/main/java/org/bukkit | |
parent | e6e50ddf9b7cb9fe4fb5e8102acf117db2db6f2a (diff) | |
download | craftbukkit-2761b598452d992b05a384528b54298ab1166456.tar craftbukkit-2761b598452d992b05a384528b54298ab1166456.tar.gz craftbukkit-2761b598452d992b05a384528b54298ab1166456.tar.lz craftbukkit-2761b598452d992b05a384528b54298ab1166456.tar.xz craftbukkit-2761b598452d992b05a384528b54298ab1166456.zip |
Update to Minecraft Server 1.2
Diffstat (limited to 'src/main/java/org/bukkit')
5 files changed, 11 insertions, 11 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/CraftBlock.java index 64b13a4f..18ea916a 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftBlock.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftBlock.java @@ -24,7 +24,7 @@ public class CraftBlock implements Block { this.z = z; this.type = type; this.data = data; - this.light = (byte)world.getHandle().i(x, y, z); + this.light = (byte)world.getHandle().j(x, y, z); this.chunk = (CraftChunk)world.getChunkAt(x << 4, z << 4); } @@ -121,7 +121,7 @@ public class CraftBlock implements Block { */ public boolean setTypeID(final int type) { this.type = type; - return world.getHandle().d(x, y, z, type); + return world.getHandle().e(x, y, z, type); } /** @@ -259,9 +259,9 @@ public class CraftBlock implements Block { Material material = getType(); switch (material) { - case Sign: - case SignPost: - case WallSign: + case SIGN: + case SIGN_POST: + case WALL_SIGN: return new CraftSign(this); default: return new CraftBlockState(this); diff --git a/src/main/java/org/bukkit/craftbukkit/CraftInventory.java b/src/main/java/org/bukkit/craftbukkit/CraftInventory.java index b79413d6..b0461d80 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftInventory.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftInventory.java @@ -19,7 +19,7 @@ public class CraftInventory implements org.bukkit.Inventory { }
public int getSize() {
- return getInventory().a();
+ return getInventory().h_();
}
public String getName() {
@@ -42,7 +42,7 @@ public class CraftInventory implements org.bukkit.Inventory { }
public void setItem(int index, ItemStack item) {
- getInventory().a( index, new net.minecraft.server.ItemStack( item.getTypeID(), item.getAmount()));
+ getInventory().a( index, new net.minecraft.server.ItemStack( item.getTypeID(), item.getAmount(), 0));
}
public boolean contains(int materialId) {
@@ -121,7 +121,7 @@ public class CraftInventory implements org.bukkit.Inventory { }
public int firstEmpty() {
- return first(Material.Air);
+ return first(Material.AIR);
}
public int firstPartial(int materialId) {
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftItemStack.java b/src/main/java/org/bukkit/craftbukkit/CraftItemStack.java index 710bad4f..495d46bd 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftItemStack.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftItemStack.java @@ -36,7 +36,7 @@ public class CraftItemStack extends ItemStack { item = null; } else { if (item == null) { - item = new net.minecraft.server.ItemStack(type); + item = new net.minecraft.server.ItemStack(type, 1, 0); super.setAmount(1); } else { item.c = type; diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 66f28647..993ab7a9 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -213,7 +213,7 @@ public class CraftWorld implements World { } public TileEntity getTileEntityAt(final int x, final int y, final int z) { - return world.l(x, y, z); + return world.m(x, y, z); } public String getName() { diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlockState.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlockState.java index f2a0c275..d9ba4deb 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlockState.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlockState.java @@ -110,7 +110,7 @@ public class CraftBlockState implements BlockState { */ public void setTypeID(final int type) { this.type = type; - world.getHandle().d(x, y, z, type); + world.getHandle().e(x, y, z, type); } /** |