Package | Description |
---|---|
net.minecraft.client.audio | |
net.minecraftforge.client | |
net.minecraftforge.client.event.sound |
Modifier and Type | Method and Description |
---|---|
SoundPoolEntry |
SoundPool.addSound(String par1Str,
File par2File)
Adds a sound to this sound pool.
|
SoundPoolEntry |
SoundPool.addSound(String par1Str,
URL url)
URL version of addSound, as the back-end sound engine has full support for various types of URLs
|
SoundPoolEntry |
SoundPool.getRandomSound()
Gets a random SoundPoolEntry.
|
SoundPoolEntry |
SoundPool.getRandomSoundFromSoundPool(String par1Str)
gets a random sound from the specified (by name, can be sound/newsound/streaming/music/newmusic) sound pool.
|
Modifier and Type | Method and Description |
---|---|
static SoundPoolEntry |
ModCompatibilityClient.audioModPickBackgroundMusic(SoundManager soundManager,
SoundPoolEntry current)
If the current player is underground, it picks a random song from the cave sound pool,
if they are not it returns the passed in entry.
|
Modifier and Type | Method and Description |
---|---|
static SoundPoolEntry |
ModCompatibilityClient.audioModPickBackgroundMusic(SoundManager soundManager,
SoundPoolEntry current)
If the current player is underground, it picks a random song from the cave sound pool,
if they are not it returns the passed in entry.
|
Modifier and Type | Field and Description |
---|---|
SoundPoolEntry |
SoundResultEvent.result |
SoundPoolEntry |
SoundResultEvent.source |
Modifier and Type | Method and Description |
---|---|
static SoundPoolEntry |
SoundEvent.getResult(SoundResultEvent event) |
Constructor and Description |
---|
PlayBackgroundMusicEvent(SoundManager manager,
SoundPoolEntry entry) |
PlaySoundEffectEvent(SoundManager manager,
SoundPoolEntry source,
String name,
float volume,
float pitch) |
PlaySoundEvent(SoundManager manager,
SoundPoolEntry source,
String name,
float x,
float y,
float z,
float volume,
float pitch) |
PlayStreamingEvent(SoundManager manager,
SoundPoolEntry source,
String name,
float x,
float y,
float z) |
SoundResultEvent(SoundManager manager,
SoundPoolEntry source,
String name,
float volume,
float pitch) |