mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Removed Block.getRawData
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
58aa293c7f
commit
95a285bfe9
2 changed files with 2 additions and 7 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ public class CraftBlockState implements BlockState {
|
|||
this.light = block.getLightLevel();
|
||||
this.chunk = (CraftChunk)block.getChunk();
|
||||
|
||||
createData(block.getRawData());
|
||||
createData(block.getData());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue