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 Summary
Modifier and TypeClassDescriptionprotected class
A builder for a sound definition.protected static class
Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider
net.minecraft.data.DataProvider.Factory<T extends net.minecraft.data.DataProvider>
-
Field Summary
Fields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
defaultSound
(net.minecraft.resources.ResourceLocation id, net.minecraft.sounds.SoundEvent sound) Default behaviour for sound events.getName()
protected void
ignore
(net.minecraft.resources.ResourceLocation sound) This sound will not be processed by the default generatorprotected void
ignore
(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 void
setup()
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:
getName
in interfacenet.minecraft.data.DataProvider
-
ignore
protected void ignore(net.minecraft.sounds.SoundEvent sound) This sound will not be processed by the default generator -
ignore
protected void ignore(net.minecraft.resources.ResourceLocation sound) This sound will not be processed by the default generator -
setup
protected abstract void setup() -
defaultSound
protected void defaultSound(net.minecraft.resources.ResourceLocation id, net.minecraft.sounds.SoundEvent sound) Default behaviour for sound events. Override to change. -
settings
Creates some empty sound settings -
sound
protected SoundDefinitionProviderBase.SoundDefinitionBuilder sound(net.minecraft.sounds.SoundEvent sound) Creates a new sound definition for the given sound event. -
sound
protected SoundDefinitionProviderBase.SoundDefinitionBuilder sound(net.minecraft.resources.ResourceLocation sound) Creates a new sound definition for the given sound event. -
sound
protected 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. -
sound
protected 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:
run
in interfacenet.minecraft.data.DataProvider
-