Package de.mrjulsen.dragnsounds.net.cts
Class UploadSoundPacket
java.lang.Object
de.mrjulsen.dragnsounds.net.cts.UploadSoundPacket
- All Implemented Interfaces:
de.mrjulsen.mcdragonlib.net.IPacketBase<UploadSoundPacket>
,Comparable<UploadSoundPacket>
public class UploadSoundPacket
extends Object
implements de.mrjulsen.mcdragonlib.net.IPacketBase<UploadSoundPacket>, Comparable<UploadSoundPacket>
-
Constructor Summary
ConstructorDescriptionUploadSoundPacket
(long requestId, int index, boolean hasMore, int maxSize, byte[] data) -
Method Summary
Modifier and TypeMethodDescriptionint
decode
(net.minecraft.network.FriendlyByteBuf buf) void
encode
(UploadSoundPacket packet, net.minecraft.network.FriendlyByteBuf buf) byte[]
getData()
int
getIndex()
int
long
void
handle
(UploadSoundPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier) boolean
hasMore()
-
Constructor Details
-
UploadSoundPacket
public UploadSoundPacket() -
UploadSoundPacket
public UploadSoundPacket(long requestId, int index, boolean hasMore, int maxSize, byte[] data)
-
-
Method Details
-
encode
- Specified by:
encode
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<UploadSoundPacket>
-
decode
- Specified by:
decode
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<UploadSoundPacket>
-
handle
public void handle(UploadSoundPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier) - Specified by:
handle
in interfacede.mrjulsen.mcdragonlib.net.IPacketBase<UploadSoundPacket>
-
getData
public byte[] getData() -
getRequestId
public long getRequestId() -
hasMore
public boolean hasMore() -
getIndex
public int getIndex() -
getMaxSize
public int getMaxSize() -
compareTo
- Specified by:
compareTo
in interfaceComparable<UploadSoundPacket>
-