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