Package de.mrjulsen.dragnsounds.net.cts
Class PlaySoundRequestPacket
java.lang.Object
de.mrjulsen.dragnsounds.net.cts.PlaySoundRequestPacket
- All Implemented Interfaces:
de.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundRequestPacket>
public class PlaySoundRequestPacket
extends Object
implements de.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundRequestPacket>
-
Constructor Summary
ConstructorDescriptionPlaySoundRequestPacket
(long requestId, SoundFile file, PlaybackConfig playback) PlaySoundRequestPacket
(long requestId, net.minecraft.nbt.CompoundTag nbt, PlaybackConfig playback) -
Method Summary
Modifier and TypeMethodDescriptiondecode
(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)
-
Constructor Details
-
PlaySoundRequestPacket
public PlaySoundRequestPacket() -
PlaySoundRequestPacket
-
PlaySoundRequestPacket
public PlaySoundRequestPacket(long requestId, net.minecraft.nbt.CompoundTag nbt, PlaybackConfig playback)
-
-
Method Details
-
encode
- Specified by:
encode
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundRequestPacket>
-
decode
- Specified by:
decode
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundRequestPacket>
-
handle
public void handle(PlaySoundRequestPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier) - Specified by:
handle
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundRequestPacket>
-