Uses of Class
net.neoforged.neoforge.common.data.SoundDefinition.Sound
-
Uses of SoundDefinition.Sound in net.neoforged.neoforge.common.data
Modifier and TypeFieldDescriptionprivate final List
<SoundDefinition.Sound> SoundDefinition.sounds
Modifier and TypeMethodDescriptionSoundDefinition.Sound.attenuationDistance
(int attenuationDistance) Sets the attenuation distance of the sound.SoundDefinition.Sound.pitch
(double pitch) Sets the pitch of this specific sound.SoundDefinition.Sound.pitch
(float pitch) Sets the pitch of this specific sound.SoundDefinition.Sound.preload()
Marks this sound as needing to be preloaded.SoundDefinition.Sound.preload
(boolean preload) Sets whether this sound should be preloaded or not.static SoundDefinition.Sound
SoundDefinition.Sound.sound
(ResourceLocation name, SoundDefinition.SoundType type) Creates a new sound with the given name and type.protected static SoundDefinition.Sound
Creates a new sound with the given name andSoundDefinition.SoundType.SOUND
as sound type.protected static SoundDefinition.Sound
SoundDefinitionsProvider.sound
(String name, SoundDefinition.SoundType type) Creates a new sound with the given name and type.protected static SoundDefinition.Sound
SoundDefinitionsProvider.sound
(ResourceLocation name) Creates a new sound with the given name andSoundDefinition.SoundType.SOUND
as sound type.protected static SoundDefinition.Sound
SoundDefinitionsProvider.sound
(ResourceLocation name, SoundDefinition.SoundType type) Creates a new sound with the given name and type.SoundDefinition.Sound.stream()
Sets this sound to a streamed sound.SoundDefinition.Sound.stream
(boolean stream) Sets whether this sound should be streamed or not.SoundDefinition.Sound.volume
(double volume) Sets the volume of this specific sound.SoundDefinition.Sound.volume
(float volume) Sets the volume of this specific sound.SoundDefinition.Sound.weight
(int weight) Sets the weight of this specific sound.Modifier and TypeMethodDescription(package private) List
<SoundDefinition.Sound> SoundDefinition.soundList()
Modifier and TypeMethodDescriptionprivate boolean
SoundDefinitionsProvider.validate
(String name, SoundDefinition.Sound sound) 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.