Class SoundDefinitionProviderBase.SoundDefinitionBuilder
java.lang.Object
org.moddingx.libx.datagen.provider.SoundDefinitionProviderBase.SoundDefinitionBuilder
- Enclosing class:
- SoundDefinitionProviderBase
A builder for a sound definition.
- 
Method SummaryModifier 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.Addsamountsounds to the definition.withRange(String path, int amount, Consumer<net.neoforged.neoforge.common.data.SoundDefinition.Sound> configure) Addsamountsounds to the definition.withRange(net.minecraft.resources.ResourceLocation soundId, int amount) Addsamountsounds to the definition.withRange(net.minecraft.resources.ResourceLocation soundId, int amount, Consumer<net.neoforged.neoforge.common.data.SoundDefinition.Sound> configure) Addsamountsounds to the definition.
- 
Method Details- 
replaceSets the sound definition as a replacement sound.- See Also:
 
- 
replaceSets the replace state of the sound definition.- See Also:
 
- 
subtitleSets the language key for the sounds subtitle.- See Also:
 
- 
withAdds a sound from this mods namespace to this sound definition.
- 
withpublic SoundDefinitionProviderBase.SoundDefinitionBuilder with(net.minecraft.resources.ResourceLocation soundId) Adds a sound to this sound definition.
- 
withpublic 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.
- 
withpublic 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.
- 
withRangeAddsamountsounds to the definition. They are constructed by appending the numbers from0(inclusive) toamount(exclusive) to the given id.
- 
withRangepublic SoundDefinitionProviderBase.SoundDefinitionBuilder withRange(net.minecraft.resources.ResourceLocation soundId, int amount) Addsamountsounds to the definition. They are constructed by appending the numbers from0(inclusive) toamount(exclusive) to the given id.
- 
withRangepublic SoundDefinitionProviderBase.SoundDefinitionBuilder withRange(String path, int amount, Consumer<net.neoforged.neoforge.common.data.SoundDefinition.Sound> configure) Addsamountsounds to the definition. They are constructed by appending the numbers from0(inclusive) toamount(exclusive) to the given id.
- 
withRangepublic SoundDefinitionProviderBase.SoundDefinitionBuilder withRange(net.minecraft.resources.ResourceLocation soundId, int amount, Consumer<net.neoforged.neoforge.common.data.SoundDefinition.Sound> configure) Addsamountsounds to the definition. They are constructed by appending the numbers from0(inclusive) toamount(exclusive) to the given id.
- 
eventpublic SoundDefinitionProviderBase.SoundDefinitionBuilder event(net.minecraft.sounds.SoundEvent event) Adds another sound event as a sound for this definition.
- 
eventpublic 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.
 
-