@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);
	}
@ 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 ) ; }
Gets the {@link IBlockState} from <code>meta</code>.

@param block the block
@param meta the meta
@return the state from meta