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 class
JukeboxSongBuilder.Companion
-
Field Summary
Fields Modifier and Type Field Description private final String
descriptionKey
private Component
description
private Integer
comparatorOutput
private String
descriptionText
private Holder<SoundEvent>
soundEvent
private Float
lengthSecs
private final AbstractRegistrate<?>
owner
private final P
parent
private final String
name
private final BuilderCallback
callback
private final ResourceKey<out Registry<JukeboxSong>>
registryKey
private final Multimap<ProviderType<out RegistrateTagsProvider<?>>, TagKey<?>>
tagsByType
private final LazyRegistryEntry<JukeboxSong, JukeboxSong>
safeSupplier
private final Boolean
isOptional
public final static JukeboxSongBuilder.Companion
Companion
-
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 String
getDescriptionKey()
final Component
getDescription()
final Unit
setDescription(Component description)
final Integer
getComparatorOutput()
final Unit
setComparatorOutput(Integer comparatorOutput)
final String
getDescriptionText()
final Unit
setDescriptionText(String descriptionText)
final Holder<SoundEvent>
getSoundEvent()
final Unit
setSoundEvent(Holder<SoundEvent> soundEvent)
final Float
getLengthSecs()
final Unit
setLengthSecs(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)
JukeboxSong
createEntry()
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()
-
-
-
-