How to correctly check redstone power on sides of my block?
For now I using code like:
boolean a = world.getBlockId(x, y, z - 1) == Block.redstoneWire.blockID && world.getBlockMetadata(x, y, z - 1) > 0;
But I want to check redstone power from any source, not only wire. Threre is any way to do it, except manually check all possible redstone sources?