YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.client.audio.SoundPool Class Reference

Public Member Functions

SoundPoolEntry addSound (String par1Str, File par2File)
 
SoundPoolEntry addSound (String par1Str, URL url)
 
SoundPoolEntry getRandomSoundFromSoundPool (String par1Str)
 
SoundPoolEntry getRandomSound ()
 

Public Attributes

int numberOfSoundPoolEntries = 0
 
boolean isGetRandomSound = true
 

Member Function Documentation

SoundPoolEntry net.minecraft.client.audio.SoundPool.addSound ( String  par1Str,
File  par2File 
)

Adds a sound to this sound pool.

SoundPoolEntry net.minecraft.client.audio.SoundPool.addSound ( String  par1Str,
URL  url 
)

URL version of addSound, as the back-end sound engine has full support for various types of URLs

Parameters
par1StrThe name of the sound to add
urlThe url of the sound resource
Returns
A SoundPoolEntry for the newly added sound
SoundPoolEntry net.minecraft.client.audio.SoundPool.getRandomSound ( )

Gets a random SoundPoolEntry.

SoundPoolEntry net.minecraft.client.audio.SoundPool.getRandomSoundFromSoundPool ( String  par1Str)

gets a random sound from the specified (by name, can be sound/newsound/streaming/music/newmusic) sound pool.

Member Data Documentation

boolean net.minecraft.client.audio.SoundPool.isGetRandomSound = true
int net.minecraft.client.audio.SoundPool.numberOfSoundPoolEntries = 0

The number of soundPoolEntry's. This value is computed but never used (should be equal to allSoundPoolEntries.size()).


The documentation for this class was generated from the following file: