Package dev.latvian.mods.kubejs.item
Class JukeboxSongBuilder
java.lang.Object
dev.latvian.mods.kubejs.registry.BuilderBase<net.minecraft.world.item.JukeboxSong>
dev.latvian.mods.kubejs.item.JukeboxSongBuilder
- All Implemented Interfaces:
Supplier<net.minecraft.world.item.JukeboxSong>
@ReturnsSelf
public class JukeboxSongBuilder
extends BuilderBase<net.minecraft.world.item.JukeboxSong>
-
Field Summary
FieldsModifier and TypeFieldDescriptionintnet.minecraft.network.chat.Componentfloatnet.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> Fields inherited from class dev.latvian.mods.kubejs.registry.BuilderBase
defaultTags, displayName, dummyBuilder, formattedDisplayName, id, object, registryKey, sourceLine, translationKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomparatorOutput(int comparatorOutput) net.minecraft.world.item.JukeboxSongdescription(net.minecraft.network.chat.Component description) song(net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> sound, float length) Methods inherited from class dev.latvian.mods.kubejs.registry.BuilderBase
createAdditionalObjects, createTransformedObject, displayName, formattedDisplayName, formattedDisplayName, generateAssets, generateData, generateLang, get, getBuilderTranslationKey, getTranslationKeyGroup, newID, tag, toString, transformObject, translationKey
-
Field Details
-
sound
public transient net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> sound -
lengthInSeconds
public transient float lengthInSeconds -
description
public transient net.minecraft.network.chat.Component description -
comparatorOutput
public transient int comparatorOutput
-
-
Constructor Details
-
JukeboxSongBuilder
public JukeboxSongBuilder(net.minecraft.resources.ResourceLocation id)
-
-
Method Details
-
createObject
public net.minecraft.world.item.JukeboxSong createObject()- Specified by:
createObjectin classBuilderBase<net.minecraft.world.item.JukeboxSong>
-
song
public JukeboxSongBuilder song(net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> sound, float length) -
description
-
comparatorOutput
-