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