Package de.mrjulsen.dragnsounds.net.cts
Klasse PlaySoundRequestPacket
java.lang.Object
de.mrjulsen.dragnsounds.net.cts.PlaySoundRequestPacket
- Alle implementierten Schnittstellen:
de.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundRequestPacket>
public class PlaySoundRequestPacket
extends Object
implements de.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundRequestPacket>
-
Konstruktorübersicht
KonstruktorBeschreibungPlaySoundRequestPacket
(long requestId, SoundFile file, PlaybackConfig playback) PlaySoundRequestPacket
(long requestId, net.minecraft.nbt.CompoundTag nbt, PlaybackConfig playback) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdecode
(net.minecraft.network.FriendlyByteBuf buf) void
encode
(PlaySoundRequestPacket packet, net.minecraft.network.FriendlyByteBuf buf) void
handle
(PlaySoundRequestPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier)
-
Konstruktordetails
-
PlaySoundRequestPacket
public PlaySoundRequestPacket() -
PlaySoundRequestPacket
-
PlaySoundRequestPacket
public PlaySoundRequestPacket(long requestId, net.minecraft.nbt.CompoundTag nbt, PlaybackConfig playback)
-
-
Methodendetails
-
encode
- Angegeben von:
encode
in Schnittstellede.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundRequestPacket>
-
decode
- Angegeben von:
decode
in Schnittstellede.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundRequestPacket>
-
handle
public void handle(PlaySoundRequestPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier) - Angegeben von:
handle
in Schnittstellede.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundRequestPacket>
-