Class JukeboxSongDefinition
-
- All Implemented Interfaces:
public final class JukeboxSongDefinition
-
-
Field Summary
Fields Modifier and Type Field Description private final Holder<SoundEvent>
soundEvent
private final Component
description
private final Float
lengthInSeconds
private final Integer
comparatorOutput
-
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 Component
getDescription()
final Float
getLengthInSeconds()
final Integer
getComparatorOutput()
final JsonElement
serialize(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)
-
-
-
-