Package de.mrjulsen.dragnsounds.net.stc
Class PlaySoundPacket
java.lang.Object
de.mrjulsen.dragnsounds.net.stc.PlaySoundPacket
- All Implemented Interfaces:
de.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundPacket>
public class PlaySoundPacket
extends Object
implements de.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundPacket>
-
Constructor Summary
ConstructorDescriptionPlaySoundPacket
(long soundId, int triggerIndex, SoundFile file, PlaybackConfig config, long clientCallbackRequestId) -
Method Summary
Modifier and TypeMethodDescriptiondecode
(net.minecraft.network.FriendlyByteBuf buf) void
encode
(PlaySoundPacket packet, net.minecraft.network.FriendlyByteBuf buf) void
handle
(PlaySoundPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier)
-
Constructor Details
-
PlaySoundPacket
public PlaySoundPacket() -
PlaySoundPacket
public PlaySoundPacket(long soundId, int triggerIndex, SoundFile file, PlaybackConfig config, long clientCallbackRequestId)
-
-
Method Details
-
encode
- Specified by:
encode
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundPacket>
-
decode
- Specified by:
decode
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundPacket>
-
handle
public void handle(PlaySoundPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier) - Specified by:
handle
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<PlaySoundPacket>
-