mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 11:45:52 -07:00
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user