    001    package net.minecraft.src;
    002
    003    import cpw.mods.fml.common.Side;
    004    import cpw.mods.fml.common.asm.SideOnly;
    005
    006    public class StepSound
    007    {
    008        public final String stepSoundName;
    009        public final float stepSoundVolume;
    010        public final float stepSoundPitch;
    011
    012        public StepSound(String par1Str, float par2, float par3)
    013        {
    014            this.stepSoundName = par1Str;
    015            this.stepSoundVolume = par2;
    016            this.stepSoundPitch = par3;
    017        }
    018
    019        public float getVolume()
    020        {
    021            return this.stepSoundVolume;
    022        }
    023
    024        public float getPitch()
    025        {
    026            return this.stepSoundPitch;
    027        }
    028
    029        @SideOnly(Side.CLIENT)
    030
    031        /**
    032         * Used when a block breaks, EXA: Player break, Shep eating grass, etc..
    033         */
    034        public String getBreakSound()
    035        {
    036            return "step." + this.stepSoundName;
    037        }
    038
    039        /**
    040         * Used when a entity walks over, or otherwise interacts with the block.
    041         */
    042        public String getStepSound()
    043        {
    044            return "step." + this.stepSoundName;
    045        }
    046    }