Uses of Class
net.minecraftforge.common.data.SoundDefinition
Packages that use SoundDefinition
-
Uses of SoundDefinition in net.minecraftforge.common.data
Fields in net.minecraftforge.common.data with type parameters of type SoundDefinitionModifier and TypeFieldDescriptionprivate final Map<String,
SoundDefinition> SoundDefinitionsProvider.sounds
Methods in net.minecraftforge.common.data that return SoundDefinitionModifier 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.Methods in net.minecraftforge.common.data with parameters of type SoundDefinitionModifier 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) Method parameters in net.minecraftforge.common.data with type arguments of type SoundDefinitionModifier and TypeMethodDescriptionprivate com.google.gson.JsonObject
SoundDefinitionsProvider.mapToJson
(Map<String, SoundDefinition> map)