Added helper method for "redstone direction" conversion.