Package cofh.lib.util.position

Examples of cofh.lib.util.position.BlockPosition


  public static boolean isRedstonePowered(World world, int x, int y, int z) {

    if (world.isBlockIndirectlyGettingPowered(x, y, z)) {
      return true;
    }
    for (BlockPosition bp : new BlockPosition(x, y, z).getAdjacent(false)) {
      Block block = world.getBlock(bp.x, bp.y, bp.z);
      if (block.equals(Blocks.redstone_wire) && block.isProvidingStrongPower(world, bp.x, bp.y, bp.z, 1) > 0) {
        return true;
      }
    }
View Full Code Here

TOP

Related Classes of cofh.lib.util.position.BlockPosition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.