    001package net.minecraft.block;
    002
    003import net.minecraft.block.material.Material;
    004
    005public abstract class BlockDirectional extends Block
    006{
    007    protected BlockDirectional(int par1, Material par2Material)
    008    {
    009        super(par1, par2Material);
    010    }
    011
    012    /**
    013     * Returns the orentation value from the specified metadata
    014     */
    015    public static int getDirection(int par0)
    016    {
    017        return par0 & 3;
    018    }
    019}