Uses of Class
net.minecraftforge.common.data.SoundDefinition
-
Packages that use SoundDefinition Package Description net.minecraftforge.common.data -
-
Uses of SoundDefinition in net.minecraftforge.common.data
Fields in net.minecraftforge.common.data with type parameters of type SoundDefinition Modifier and Type Field Description private java.util.Map<java.lang.String,SoundDefinition>
SoundDefinitionsProvider. sounds
Methods in net.minecraftforge.common.data that return SoundDefinition Modifier and Type Method Description static 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
SoundDefinition. replace(boolean replace)
Sets whether this definition should replace any other definition for the same sound event previously applied, rather than overwriting it.SoundDefinition
SoundDefinition. subtitle(java.lang.String subtitle)
Sets the language key for the subtitle that will be displayed whenever this sound is being played.SoundDefinition
SoundDefinition. with(SoundDefinition.Sound sound)
Adds the given sound to this sound definition.SoundDefinition
SoundDefinition. with(SoundDefinition.Sound... sounds)
Adds the given sounds to this sound definition.Methods in net.minecraftforge.common.data with parameters of type SoundDefinition Modifier and Type Method Description protected void
SoundDefinitionsProvider. add(java.lang.String soundEvent, SoundDefinition definition)
Adds theSoundEvent
with the specified name along with itsSoundDefinition
to the list.protected void
SoundDefinitionsProvider. add(java.util.function.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(java.lang.String soundEvent, SoundDefinition definition)
private boolean
SoundDefinitionsProvider. validate(java.lang.String name, SoundDefinition def)
Method parameters in net.minecraftforge.common.data with type arguments of type SoundDefinition Modifier and Type Method Description private com.google.gson.JsonObject
SoundDefinitionsProvider. mapToJson(java.util.Map<java.lang.String,SoundDefinition> map)
-