geforkt von Mirrors/Paper
Added Block.isBlockPowered(), block.isBlockIndirectlyPowered().
Dieser Commit ist enthalten in:
Ursprung
b6b5a1ef77
Commit
61c37bd369
@ -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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren