Removed Block.getRawData

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot 2011-03-04 14:20:05 +00:00
parent 58aa293c7f
commit 95a285bfe9
2 changed files with 2 additions and 7 deletions

View file

@ -95,7 +95,7 @@ public class CraftBlock implements Block {
* *
* @return block specific metadata * @return block specific metadata
*/ */
public byte getRawData() { public byte getData() {
return (byte) chunk.getHandle().b(this.x & 0xF, this.y & 0x7F, this.z & 0xF); 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) { public boolean isBlockFaceIndirectlyPowered(BlockFace face) {
return chunk.getHandle().d.j(x, y, z, blockFaceToNotch(face)); return chunk.getHandle().d.j(x, y, z, blockFaceToNotch(face));
} }
@Deprecated
public byte getData() {
return getRawData();
}
} }

View file

@ -30,7 +30,7 @@ public class CraftBlockState implements BlockState {
this.light = block.getLightLevel(); this.light = block.getLightLevel();
this.chunk = (CraftChunk)block.getChunk(); this.chunk = (CraftChunk)block.getChunk();
createData(block.getRawData()); createData(block.getData());
} }
/** /**