|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.client.audio.SoundPool
public class SoundPool
Field Summary | |
---|---|
boolean |
isGetRandomSound
|
int |
numberOfSoundPoolEntries
The number of soundPoolEntry's. |
Constructor Summary | |
---|---|
SoundPool()
|
Method Summary | |
---|---|
SoundPoolEntry |
addSound(String par1Str,
File par2File)
Adds a sound to this sound pool. |
SoundPoolEntry |
addSound(String par1Str,
URL url)
URL version of addSound, as the back-end sound engine has full support for various types of URLs |
SoundPoolEntry |
getRandomSound()
Gets a random SoundPoolEntry. |
SoundPoolEntry |
getRandomSoundFromSoundPool(String par1Str)
gets a random sound from the specified (by name, can be sound/newsound/streaming/music/newmusic) sound pool. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int numberOfSoundPoolEntries
public boolean isGetRandomSound
Constructor Detail |
---|
public SoundPool()
Method Detail |
---|
public SoundPoolEntry addSound(String par1Str, File par2File)
public SoundPoolEntry addSound(String par1Str, URL url)
par1Str
- The name of the sound to addurl
- The url of the sound resource
public SoundPoolEntry getRandomSoundFromSoundPool(String par1Str)
public SoundPoolEntry getRandomSound()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |