Class SoundDefinitionProviderBase
java.lang.Object
org.moddingx.libx.datagen.provider.SoundDefinitionProviderBase
- All Implemented Interfaces:
- net.minecraft.data.DataProvider
public abstract class SoundDefinitionProviderBase
extends Object
implements net.minecraft.data.DataProvider
A base class for sound definition providers.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected classA builder for a sound definition.protected static classNested classes/interfaces inherited from interface net.minecraft.data.DataProvidernet.minecraft.data.DataProvider.Factory<T extends net.minecraft.data.DataProvider>
- 
Field SummaryFieldsFields inherited from interface net.minecraft.data.DataProviderFIXED_ORDER_FIELDS, INDENT_WIDTH, KEY_COMPARATOR, LOGGER
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddefaultSound(net.minecraft.resources.ResourceLocation id, net.minecraft.sounds.SoundEvent sound) Default behaviour for sound events.getName()protected voidignore(net.minecraft.resources.ResourceLocation sound) This sound will not be processed by the default generatorprotected voidignore(net.minecraft.sounds.SoundEvent sound) This sound will not be processed by the default generatorrun(net.minecraft.data.CachedOutput cache) settings()Creates some empty sound settingsprotected abstract voidsetup()sound(net.minecraft.resources.ResourceLocation sound) Creates a new sound definition for the given sound event.sound(net.minecraft.resources.ResourceLocation sound, SoundDefinitionProviderBase.SoundSettingsBuilder settings) Creates a new sound definition for the given sound event and default sound settings.sound(net.minecraft.sounds.SoundEvent sound) Creates a new sound definition for the given sound event.sound(net.minecraft.sounds.SoundEvent sound, SoundDefinitionProviderBase.SoundSettingsBuilder settings) Creates a new sound definition for the given sound event and default sound settings.
- 
Field Details- 
mod
 
- 
- 
Constructor Details- 
SoundDefinitionProviderBase
 
- 
- 
Method Details- 
getName- Specified by:
- getNamein interface- net.minecraft.data.DataProvider
 
- 
ignoreprotected void ignore(net.minecraft.sounds.SoundEvent sound) This sound will not be processed by the default generator
- 
ignoreprotected void ignore(net.minecraft.resources.ResourceLocation sound) This sound will not be processed by the default generator
- 
setupprotected abstract void setup()
- 
defaultSoundprotected void defaultSound(net.minecraft.resources.ResourceLocation id, net.minecraft.sounds.SoundEvent sound) Default behaviour for sound events. Override to change.
- 
settingsCreates some empty sound settings
- 
soundprotected SoundDefinitionProviderBase.SoundDefinitionBuilder sound(net.minecraft.sounds.SoundEvent sound) Creates a new sound definition for the given sound event.
- 
soundprotected SoundDefinitionProviderBase.SoundDefinitionBuilder sound(net.minecraft.resources.ResourceLocation sound) Creates a new sound definition for the given sound event.
- 
soundprotected SoundDefinitionProviderBase.SoundDefinitionBuilder sound(net.minecraft.sounds.SoundEvent sound, SoundDefinitionProviderBase.SoundSettingsBuilder settings) Creates a new sound definition for the given sound event and default sound settings.
- 
soundprotected SoundDefinitionProviderBase.SoundDefinitionBuilder sound(net.minecraft.resources.ResourceLocation sound, SoundDefinitionProviderBase.SoundSettingsBuilder settings) Creates a new sound definition for the given sound event and default sound settings.
- 
run- Specified by:
- runin interface- net.minecraft.data.DataProvider
 
 
-