Class JukeboxSong
java.lang.Object
com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
com.github.retrooper.packetevents.protocol.item.jukebox.JukeboxSong
- All Implemented Interfaces:
IJukeboxSong
,CopyableEntity<IJukeboxSong>
,DeepComparableEntity
,MappedEntity
-
Field Summary
Fields inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
data
-
Constructor Summary
ConstructorDescriptionJukeboxSong
(Sound sound, net.kyori.adventure.text.Component description, float lengthInSeconds, int comparatorOutput) JukeboxSong
(@Nullable TypesBuilderData data, Sound sound, net.kyori.adventure.text.Component description, float lengthInSeconds, int comparatorOutput) -
Method Summary
Modifier and TypeMethodDescriptioncopy
(@Nullable TypesBuilderData newData) boolean
deepEquals
(Object obj) int
int
net.kyori.adventure.text.Component
float
getSound()
static JukeboxSong
read
(PacketWrapper<?> wrapper) Deprecated.void
setComparatorOutput
(int comparatorOutput) Deprecated.void
setDescription
(net.kyori.adventure.text.Component description) Deprecated.void
setLengthInSeconds
(float lengthInSeconds) Deprecated.void
Deprecated.toString()
static void
write
(PacketWrapper<?> wrapper, JukeboxSong song) Deprecated.Methods inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
equals, getId, getName, getRegistryData, hashCode, isRegistered
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.retrooper.packetevents.protocol.mapper.MappedEntity
getId, getName, isRegistered
-
Constructor Details
-
JukeboxSong
public JukeboxSong(Sound sound, net.kyori.adventure.text.Component description, float lengthInSeconds, int comparatorOutput) -
JukeboxSong
public JukeboxSong(@Nullable @Nullable TypesBuilderData data, Sound sound, net.kyori.adventure.text.Component description, float lengthInSeconds, int comparatorOutput)
-
-
Method Details
-
read
Deprecated. -
write
Deprecated. -
copy
- Specified by:
copy
in interfaceCopyableEntity<IJukeboxSong>
-
getSound
- Specified by:
getSound
in interfaceIJukeboxSong
-
setSound
Deprecated. -
getDescription
public net.kyori.adventure.text.Component getDescription()- Specified by:
getDescription
in interfaceIJukeboxSong
-
setDescription
Deprecated. -
getLengthInSeconds
public float getLengthInSeconds()- Specified by:
getLengthInSeconds
in interfaceIJukeboxSong
-
setLengthInSeconds
Deprecated. -
getComparatorOutput
public int getComparatorOutput()- Specified by:
getComparatorOutput
in interfaceIJukeboxSong
-
setComparatorOutput
Deprecated. -
deepEquals
- Specified by:
deepEquals
in interfaceDeepComparableEntity
-
deepHashCode
public int deepHashCode()- Specified by:
deepHashCode
in interfaceDeepComparableEntity
-
toString
- Overrides:
toString
in classAbstractMappedEntity
-