Class ItemJukeboxPlayable
java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.ItemJukeboxPlayable
-
Constructor Summary
ConstructorDescriptionItemJukeboxPlayable
(@Nullable IJukeboxSong song, @Nullable ResourceLocation songKey, boolean showInTooltip) ItemJukeboxPlayable
(@Nullable JukeboxSong song, @Nullable ResourceLocation songKey, boolean showInTooltip) -
Method Summary
Modifier and TypeMethodDescriptionboolean
@Nullable IJukeboxSong
@Nullable JukeboxSong
getSong()
Deprecated.@Nullable ResourceLocation
int
hashCode()
boolean
static ItemJukeboxPlayable
read
(PacketWrapper<?> wrapper) void
setJukeboxSong
(@Nullable JukeboxSong song) void
setShowInTooltip
(boolean showInTooltip) void
setSong
(JukeboxSong song) Deprecated.void
setSongKey
(ResourceLocation songKey) static void
write
(PacketWrapper<?> wrapper, ItemJukeboxPlayable jukeboxPlayable)
-
Constructor Details
-
ItemJukeboxPlayable
public ItemJukeboxPlayable(@Nullable @Nullable JukeboxSong song, @Nullable @Nullable ResourceLocation songKey, boolean showInTooltip) -
ItemJukeboxPlayable
public ItemJukeboxPlayable(@Nullable @Nullable IJukeboxSong song, @Nullable @Nullable ResourceLocation songKey, boolean showInTooltip)
-
-
Method Details
-
read
-
write
-
getJukeboxSong
-
setJukeboxSong
-
getSong
Deprecated. -
setSong
Deprecated. -
getSongKey
-
setSongKey
-
isShowInTooltip
public boolean isShowInTooltip() -
setShowInTooltip
public void setShowInTooltip(boolean showInTooltip) -
equals
-
hashCode
public int hashCode()
-