Package de.mrjulsen.dragnsounds.net.cts
Class FinishUploadSoundPacket
java.lang.Object
de.mrjulsen.dragnsounds.net.cts.FinishUploadSoundPacket
- All Implemented Interfaces:
de.mrjulsen.mcdragonlib.net.IPacketBase<FinishUploadSoundPacket>
public class FinishUploadSoundPacket
extends Object
implements de.mrjulsen.mcdragonlib.net.IPacketBase<FinishUploadSoundPacket>
-
Constructor Summary
ConstructorDescriptionFinishUploadSoundPacket
(long requestId, int maxSize, SoundFile.Builder file, int initialChannels, long initialDuration) -
Method Summary
Modifier and TypeMethodDescriptiondecode
(net.minecraft.network.FriendlyByteBuf buf) void
encode
(FinishUploadSoundPacket packet, net.minecraft.network.FriendlyByteBuf buf) getFile()
int
long
long
void
handle
(FinishUploadSoundPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier)
-
Constructor Details
-
FinishUploadSoundPacket
public FinishUploadSoundPacket() -
FinishUploadSoundPacket
public FinishUploadSoundPacket(long requestId, int maxSize, SoundFile.Builder file, int initialChannels, long initialDuration)
-
-
Method Details
-
encode
- Specified by:
encode
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<FinishUploadSoundPacket>
-
decode
- Specified by:
decode
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<FinishUploadSoundPacket>
-
handle
public void handle(FinishUploadSoundPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier) - Specified by:
handle
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<FinishUploadSoundPacket>
-
getRequestId
public long getRequestId() -
getInitialDuration
public long getInitialDuration() -
getInitialChannels
public int getInitialChannels() -
getFile
-