src/com/kirelcodes/logicraft/components/Component.java
public static int checkForConnectionRepeater(Location loc) {
		Block block = loc.getBlock();
		BlockFace[] goodFaces = { BlockFace.DOWN, BlockFace.EAST,
				BlockFace.SOUTH, BlockFace.NORTH, BlockFace.WEST, BlockFace.UP };
		int power = 0;
		for (BlockFace face : goodFaces) {
			Block b = block.getRelative(face);
			if (b.getType() != Material.DIODE_BLOCK_ON)
				continue;
			power++;
		}
		return power;
	}
/**
	 * Returns the amount of redstone repeaters (That are turned on ) connected to the component
	 * @param loc
	 * @return
	 */
Returns the amount of redstone repeaters (That are turned on ) connected to the component
@param loc
@return
Returns the amount of redstone repeaters ( That are turned on ) connected to the component @param loc @return
public static int checkForConnectionRepeater(Location loc) {
		Block block = loc.getBlock();
		BlockFace[] goodFaces = { BlockFace.DOWN, BlockFace.EAST,
				BlockFace.SOUTH, BlockFace.NORTH, BlockFace.WEST, BlockFace.UP };
		int power = 0;
		for (BlockFace face : goodFaces) {
			Block b = block.getRelative(face);
			if (b.getType() != Material.DIODE_BLOCK_ON)
				continue;
			power++;
		}
		return power;
	}
public static int checkForConnectionRepeater ( Location loc ) { Block block = loc . getBlock ( ) ; BlockFace [ ] goodFaces = { BlockFace . DOWN , BlockFace . EAST , BlockFace . SOUTH , BlockFace . NORTH , BlockFace . WEST , BlockFace . UP } ; int power = 0 ; for ( BlockFace face : goodFaces ) { Block b = block . getRelative ( face ) ; if ( b . getType ( ) != Material . DIODE_BLOCK_ON ) continue ; power ++ ; } return power ; }
Returns the amount of redstone repeaters (That are turned on ) connected to the component
 @param loc
 @return
Returns the amount of redstone repeaters ( That are turned on ) connected to the component @param loc @return