public static BlockFace getDirection(Block block)
	{
		byte north, east, south, west;
		
		if (block.getType().equals(Material.PUMPKIN) || block.getType().equals(Material.JACK_O_LANTERN))
		{
			south = 0x0;
			west = 0x01;
			north = 0x02;
			east = 0x03;
		}
		else
		{
			north = 0x02;
			south = 0x03;
			west = 0x04;
			east = 0x05;
		}
		
		byte direction = block.getData();
		
		if (direction == north)
		{
			return BlockFace.NORTH;
		}
		else if (direction == south)
		{
			return BlockFace.SOUTH;
		}
		else if (direction == west)
		{
			return BlockFace.WEST;
		}
		else if (direction == east)
		{
			return BlockFace.EAST;
		}
		else
		{
			return null;
		}
	}