mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-01 12:41:50 +01:00
Added Block.isBlockPowered(), block.isBlockIndirectlyPowered().
This commit is contained in:
parent
b6b5a1ef77
commit
61c37bd369
1 changed files with 8 additions and 0 deletions
|
@ -337,6 +337,14 @@ public class CraftBlock implements Block {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isBlockPowered() {
|
||||||
|
return world.getHandle().o(x, y, z);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isBlockIndirectlyPowered() {
|
||||||
|
return world.getHandle().p(x, y, z);
|
||||||
|
}
|
||||||
|
|
||||||
public void update() {
|
public void update() {
|
||||||
type = world.getHandle().a(x, y, z);
|
type = world.getHandle().a(x, y, z);
|
||||||
data = (byte)world.getHandle().b(x, y, z);
|
data = (byte)world.getHandle().b(x, y, z);
|
||||||
|
|
Loading…
Reference in a new issue