Class JukeboxSongDefinition
-
- All Implemented Interfaces:
public final class JukeboxSongDefinition
-
-
Field Summary
Fields Modifier and Type Field Description private final Holder<SoundEvent>soundEventprivate final Componentdescriptionprivate final FloatlengthInSecondsprivate final IntegercomparatorOutput
-
Constructor Summary
Constructors Constructor Description JukeboxSongDefinition(Holder<SoundEvent> soundEvent, Component description, Float lengthInSeconds, Integer comparatorOutput)
-
Method Summary
Modifier and Type Method Description final Holder<SoundEvent>getSoundEvent()final ComponentgetDescription()final FloatgetLengthInSeconds()final IntegergetComparatorOutput()final JsonElementserialize(HolderLookup.Provider lookup)-
-
Method Detail
-
getSoundEvent
final Holder<SoundEvent> getSoundEvent()
-
getDescription
final Component getDescription()
-
getLengthInSeconds
final Float getLengthInSeconds()
-
getComparatorOutput
final Integer getComparatorOutput()
-
serialize
final JsonElement serialize(HolderLookup.Provider lookup)
-
-
-
-