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
Nested ClassesModifier and TypeClassDescriptionprotected classA builder for a sound definition.protected static classNested classes/interfaces inherited from interface net.minecraft.data.DataProvider
net.minecraft.data.DataProvider.Factory<T> -
Field Summary
FieldsFields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, INDENT_WIDTH, KEY_COMPARATOR, LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddefaultSound(net.minecraft.resources.Identifier id, net.minecraft.sounds.SoundEvent sound) Default behavior for sound events.getName()protected voidignore(net.minecraft.resources.Identifier 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.Identifier sound) Creates a new sound definition for the given sound event.sound(net.minecraft.resources.Identifier 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
-
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.Identifier sound) This sound will not be processed by the default generator -
setup
protected abstract void setup() -
defaultSound
protected void defaultSound(net.minecraft.resources.Identifier id, net.minecraft.sounds.SoundEvent sound) Default behavior 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.Identifier 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.Identifier sound, SoundDefinitionProviderBase.SoundSettingsBuilder settings) Creates a new sound definition for the given sound event and default sound settings. -
run
- Specified by:
runin interfacenet.minecraft.data.DataProvider
-