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