From 95a285bfe9141888122f20bac884a7a3632126c6 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 4 Mar 2011 14:20:05 +0000 Subject: [PATCH] Removed Block.getRawData By: Dinnerbone --- .../main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 7 +------ .../java/org/bukkit/craftbukkit/block/CraftBlockState.java | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index 638d7ef003..0c0804958e 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java @@ -95,7 +95,7 @@ public class CraftBlock implements Block { * * @return block specific metadata */ - public byte getRawData() { + public byte getData() { return (byte) chunk.getHandle().b(this.x & 0xF, this.y & 0x7F, this.z & 0xF); } @@ -354,9 +354,4 @@ public class CraftBlock implements Block { public boolean isBlockFaceIndirectlyPowered(BlockFace face) { return chunk.getHandle().d.j(x, y, z, blockFaceToNotch(face)); } - - @Deprecated - public byte getData() { - return getRawData(); - } } diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlockState.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlockState.java index a30288d9fa..9475b146bd 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlockState.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlockState.java @@ -30,7 +30,7 @@ public class CraftBlockState implements BlockState { this.light = block.getLightLevel(); this.chunk = (CraftChunk)block.getChunk(); - createData(block.getRawData()); + createData(block.getData()); } /**