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