Class SoundDefinitionProviderBase.SoundDefinitionBuilder
java.lang.Object
org.moddingx.libx.datagen.provider.SoundDefinitionProviderBase.SoundDefinitionBuilder
- Enclosing class:
SoundDefinitionProviderBase
A builder for a sound definition.
-
Method Summary
Modifier and TypeMethodDescriptionevent
(net.minecraft.sounds.SoundEvent event) Adds another sound event as a sound for this definition.event
(net.minecraft.sounds.SoundEvent event, Consumer<net.neoforged.neoforge.common.data.SoundDefinition.Sound> configure) Adds another sound event as a sound for this definition.replace()
Sets the sound definition as a replacement sound.replace
(boolean replace) Sets the replace state of the sound definition.Sets the language key for the sounds subtitle.Adds a sound from this mods namespace to this sound definition.Adds a sound from this mods namespace to this sound definition.with
(net.minecraft.resources.ResourceLocation soundId) Adds a sound to this sound definition.with
(net.minecraft.resources.ResourceLocation soundId, Consumer<net.neoforged.neoforge.common.data.SoundDefinition.Sound> configure) Adds a sound to this sound definition.Addsamount
sounds to the definition.withRange
(String path, int amount, Consumer<net.neoforged.neoforge.common.data.SoundDefinition.Sound> configure) Addsamount
sounds to the definition.withRange
(net.minecraft.resources.ResourceLocation soundId, int amount) Addsamount
sounds to the definition.withRange
(net.minecraft.resources.ResourceLocation soundId, int amount, Consumer<net.neoforged.neoforge.common.data.SoundDefinition.Sound> configure) Addsamount
sounds to the definition.
-
Method Details
-
replace
Sets the sound definition as a replacement sound.- See Also:
-
replace
Sets the replace state of the sound definition.- See Also:
-
subtitle
Sets the language key for the sounds subtitle.- See Also:
-
with
Adds a sound from this mods namespace to this sound definition. -
with
public SoundDefinitionProviderBase.SoundDefinitionBuilder with(net.minecraft.resources.ResourceLocation soundId) Adds a sound to this sound definition. -
with
public SoundDefinitionProviderBase.SoundDefinitionBuilder with(String path, Consumer<net.neoforged.neoforge.common.data.SoundDefinition.Sound> configure) Adds a sound from this mods namespace to this sound definition. Also allows to then further customise the sound. -
with
public SoundDefinitionProviderBase.SoundDefinitionBuilder with(net.minecraft.resources.ResourceLocation soundId, Consumer<net.neoforged.neoforge.common.data.SoundDefinition.Sound> configure) Adds a sound to this sound definition. Also allows to then further customise the sound. -
withRange
Addsamount
sounds to the definition. They are constructed by appending the numbers from0
(inclusive) toamount
(exclusive) to the given id. -
withRange
public SoundDefinitionProviderBase.SoundDefinitionBuilder withRange(net.minecraft.resources.ResourceLocation soundId, int amount) Addsamount
sounds to the definition. They are constructed by appending the numbers from0
(inclusive) toamount
(exclusive) to the given id. -
withRange
public SoundDefinitionProviderBase.SoundDefinitionBuilder withRange(String path, int amount, Consumer<net.neoforged.neoforge.common.data.SoundDefinition.Sound> configure) Addsamount
sounds to the definition. They are constructed by appending the numbers from0
(inclusive) toamount
(exclusive) to the given id. -
withRange
public SoundDefinitionProviderBase.SoundDefinitionBuilder withRange(net.minecraft.resources.ResourceLocation soundId, int amount, Consumer<net.neoforged.neoforge.common.data.SoundDefinition.Sound> configure) Addsamount
sounds to the definition. They are constructed by appending the numbers from0
(inclusive) toamount
(exclusive) to the given id. -
event
public SoundDefinitionProviderBase.SoundDefinitionBuilder event(net.minecraft.sounds.SoundEvent event) Adds another sound event as a sound for this definition. -
event
public SoundDefinitionProviderBase.SoundDefinitionBuilder event(net.minecraft.sounds.SoundEvent event, Consumer<net.neoforged.neoforge.common.data.SoundDefinition.Sound> configure) Adds another sound event as a sound for this definition. Also allows to then further customise the sound.
-