Class JukeboxSongBuilder
-
- All Implemented Interfaces:
-
com.tterrag.registrate.builders.Builder,com.tterrag.registrate.util.nullness.NonNullSupplier,java.util.function.Supplier
public class JukeboxSongBuilder<P extends Object> extends AbstractBuilder<JukeboxSong, JukeboxSong, P, JukeboxSongBuilder<P>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classJukeboxSongBuilder.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StringdescriptionKeyprivate Componentdescriptionprivate IntegercomparatorOutputprivate StringdescriptionTextprivate Holder<SoundEvent>soundEventprivate FloatlengthSecsprivate final AbstractRegistrate<?>ownerprivate final Pparentprivate final Stringnameprivate final BuilderCallbackcallbackprivate final ResourceKey<out Registry<JukeboxSong>>registryKeyprivate final Multimap<ProviderType<out RegistrateTagsProvider<?>>, TagKey<?>>tagsByTypeprivate final LazyRegistryEntry<JukeboxSong, JukeboxSong>safeSupplierprivate final BooleanisOptionalpublic final static JukeboxSongBuilder.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description JukeboxSongBuilder(AbstractRegistrate<?> owner, P parent, String name, BuilderCallback callback, Holder<SoundEvent> soundEvent, Float lengthSecs)
-
Method Summary
Modifier and Type Method Description final StringgetDescriptionKey()final ComponentgetDescription()final UnitsetDescription(Component description)final IntegergetComparatorOutput()final UnitsetComparatorOutput(Integer comparatorOutput)final StringgetDescriptionText()final UnitsetDescriptionText(String descriptionText)final Holder<SoundEvent>getSoundEvent()final UnitsetSoundEvent(Holder<SoundEvent> soundEvent)final FloatgetLengthSecs()final UnitsetLengthSecs(Float lengthSecs)final JukeboxSongBuilder<P>sound(Holder<SoundEvent> event)final JukeboxSongBuilder<P>description(Component description)final JukeboxSongBuilder<P>description(String text)final JukeboxSongBuilder<P>length(Float lengthSecs)final JukeboxSongBuilder<P>comparatorOutput(Integer output)JukeboxSongcreateEntry()RegistryEntry<JukeboxSong, JukeboxSong>register()-
Methods inherited from class com.tterrag.registrate.builders.AbstractBuilder
asOptional, asSupplier, asTag, createEntryWrapper, getCallback, getName, getOwner, getParent, getRegistryKey, lang, lang, lang, removeTag, tag -
Methods inherited from class com.tterrag.registrate.builders.Builder
addMiscData, build, dataMap, dataMap, get, getEntry, onRegister, onRegisterAfter, setData, transform -
Methods inherited from class com.tterrag.registrate.util.nullness.NonNullSupplier
lazy -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDescriptionKey
final String getDescriptionKey()
-
getDescription
final Component getDescription()
-
setDescription
final Unit setDescription(Component description)
-
getComparatorOutput
final Integer getComparatorOutput()
-
setComparatorOutput
final Unit setComparatorOutput(Integer comparatorOutput)
-
getDescriptionText
final String getDescriptionText()
-
setDescriptionText
final Unit setDescriptionText(String descriptionText)
-
getSoundEvent
final Holder<SoundEvent> getSoundEvent()
-
setSoundEvent
final Unit setSoundEvent(Holder<SoundEvent> soundEvent)
-
getLengthSecs
final Float getLengthSecs()
-
setLengthSecs
final Unit setLengthSecs(Float lengthSecs)
-
sound
final JukeboxSongBuilder<P> sound(Holder<SoundEvent> event)
-
description
final JukeboxSongBuilder<P> description(Component description)
-
description
final JukeboxSongBuilder<P> description(String text)
-
length
final JukeboxSongBuilder<P> length(Float lengthSecs)
-
comparatorOutput
final JukeboxSongBuilder<P> comparatorOutput(Integer output)
-
createEntry
JukeboxSong createEntry()
-
register
RegistryEntry<JukeboxSong, JukeboxSong> register()
-
-
-
-