mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 20:07:41 +01:00
Added Block.isBlockPowered(), block.isBlockIndirectlyPowered().
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
89b8395123
commit
6eb906ae20
@ -337,6 +337,14 @@ public class CraftBlock implements Block {
|
||||
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() {
|
||||
type = world.getHandle().a(x, y, z);
|
||||
data = (byte)world.getHandle().b(x, y, z);
|
||||
|
Loading…
Reference in New Issue
Block a user