code: public static EnumFacing getDirection(IBlockState state)
  	{
  		DirectionalComponent dc = IComponent.getComponent(DirectionalComponent.class, state.getBlock());
  		if (dc == null)
  			return EnumFacing.SOUTH;
  
  		PropertyDirection property = dc.getProperty();
  		if (property == null || !state.getProperties().containsKey(property))
  			return EnumFacing.SOUTH;
  
  		return state.getValue(property);
  	}
docs: Gets the {@link EnumFacing direction} for the {@link IBlockState}
  
  @param state the state
  @return the EnumFacing, null if the block is not {@link DirectionalComponent}