Uses of Class
net.minecraftforge.common.data.SoundDefinition
-
Uses of SoundDefinition in net.minecraftforge.common.data
Modifier and TypeFieldDescriptionprivate Map<String,SoundDefinition>
SoundDefinitionsProvider.sounds
Modifier and TypeMethodDescriptionstatic SoundDefinition
SoundDefinition.definition()
Creates a newSoundDefinition
, which will host a set ofSoundDefinition.Sound
s and the necessary parameters.protected static SoundDefinition
SoundDefinitionsProvider.definition()
Creates a newSoundDefinition
, which will host a set ofSoundDefinition.Sound
s and the necessary parameters.SoundDefinition.replace(boolean replace)
Sets whether this definition should replace any other definition for the same sound event previously applied, rather than overwriting it.Sets the language key for the subtitle that will be displayed whenever this sound is being played.SoundDefinition.with(SoundDefinition.Sound sound)
Adds the given sound to this sound definition.SoundDefinition.with(SoundDefinition.Sound... sounds)
Adds the given sounds to this sound definition.Modifier and TypeMethodDescriptionprotected void
SoundDefinitionsProvider.add(String soundEvent, SoundDefinition definition)
Adds theSoundEvent
with the specified name along with itsSoundDefinition
to the list.protected void
SoundDefinitionsProvider.add(Supplier<SoundEvent> soundEvent, SoundDefinition definition)
Adds the entry name associated with the suppliedSoundEvent
with the givenSoundDefinition
to the list.protected void
SoundDefinitionsProvider.add(ResourceLocation soundEvent, SoundDefinition definition)
protected void
SoundDefinitionsProvider.add(SoundEvent soundEvent, SoundDefinition definition)
Adds the entry name associated with the givenSoundEvent
with theSoundDefinition
to the list.private void
SoundDefinitionsProvider.addSounds(String soundEvent, SoundDefinition definition)
private boolean
SoundDefinitionsProvider.validate(String name, SoundDefinition def)
Modifier and TypeMethodDescriptionprivate com.google.gson.JsonObject
SoundDefinitionsProvider.mapToJson(Map<String,SoundDefinition> map)