Uses of Class
net.neoforged.neoforge.common.data.SoundDefinition
Packages that use SoundDefinition
-
Uses of SoundDefinition in net.neoforged.neoforge.common.data
Fields in net.neoforged.neoforge.common.data with type parameters of type SoundDefinitionModifier and TypeFieldDescriptionprivate final Map<String, SoundDefinition> SoundDefinitionsProvider.soundsMethods in net.neoforged.neoforge.common.data that return SoundDefinitionModifier and TypeMethodDescriptionstatic SoundDefinitionSoundDefinition.definition()Creates a newSoundDefinition, which will host a set ofSoundDefinition.Sounds and the necessary parameters.protected static SoundDefinitionSoundDefinitionsProvider.definition()Creates a newSoundDefinition, which will host a set ofSoundDefinition.Sounds 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.Methods in net.neoforged.neoforge.common.data with parameters of type SoundDefinitionModifier and TypeMethodDescriptionprotected voidSoundDefinitionsProvider.add(String soundEvent, SoundDefinition definition) Adds theSoundEventwith the specified name along with itsSoundDefinitionto the list.protected voidSoundDefinitionsProvider.add(Supplier<SoundEvent> soundEvent, SoundDefinition definition) Adds the entry name associated with the suppliedSoundEventwith the givenSoundDefinitionto the list.protected voidSoundDefinitionsProvider.add(ResourceLocation soundEvent, SoundDefinition definition) protected voidSoundDefinitionsProvider.add(SoundEvent soundEvent, SoundDefinition definition) Adds the entry name associated with the givenSoundEventwith theSoundDefinitionto the list.private voidSoundDefinitionsProvider.addSounds(String soundEvent, SoundDefinition definition) private booleanSoundDefinitionsProvider.validate(String name, SoundDefinition def) Method parameters in net.neoforged.neoforge.common.data with type arguments of type SoundDefinitionModifier and TypeMethodDescriptionprivate com.google.gson.JsonObjectSoundDefinitionsProvider.mapToJson(Map<String, SoundDefinition> map)