Package de.mrjulsen.dragnsounds.net.cts
Class SoundFileRequestPacket
java.lang.Object
de.mrjulsen.dragnsounds.net.cts.SoundFileRequestPacket
- All Implemented Interfaces:
de.mrjulsen.mcdragonlib.net.IPacketBase<SoundFileRequestPacket>
public class SoundFileRequestPacket
extends Object
implements de.mrjulsen.mcdragonlib.net.IPacketBase<SoundFileRequestPacket>
-
Constructor Summary
ConstructorDescriptionSoundFileRequestPacket
(long requestId, String id, SoundLocation location) SoundFileRequestPacket
(long requestId, String id, net.minecraft.nbt.CompoundTag nbt) -
Method Summary
Modifier and TypeMethodDescriptiondecode
(net.minecraft.network.FriendlyByteBuf buf) void
encode
(SoundFileRequestPacket packet, net.minecraft.network.FriendlyByteBuf buf) void
handle
(SoundFileRequestPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier)
-
Constructor Details
-
SoundFileRequestPacket
public SoundFileRequestPacket() -
SoundFileRequestPacket
-
SoundFileRequestPacket
-
-
Method Details
-
encode
- Specified by:
encode
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<SoundFileRequestPacket>
-
decode
- Specified by:
decode
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<SoundFileRequestPacket>
-
handle
public void handle(SoundFileRequestPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier) - Specified by:
handle
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<SoundFileRequestPacket>
-