code: @Override
  	public IBlockState getStateFromMeta(Block block, IBlockState state, int meta)
  	{
  		EnumFacing facing = null;
  		if (getProperty() == HORIZONTAL)
  			facing = EnumFacing.getHorizontal(meta & 3);
  		else
  			facing = EnumFacing.getFront(meta & 7);
  		return state.withProperty(getProperty(), facing);
  	}
docs: Gets the {@link IBlockState} from <code>meta</code>.
  
  @param block the block
  @param meta the meta
  @return the state from meta