Package de.mrjulsen.dragnsounds.net.cts
Klasse FinishUploadSoundPacket
java.lang.Object
de.mrjulsen.dragnsounds.net.cts.FinishUploadSoundPacket
- Alle implementierten Schnittstellen:
de.mrjulsen.mcdragonlib.net.IPacketBase<FinishUploadSoundPacket>
public class FinishUploadSoundPacket
extends Object
implements de.mrjulsen.mcdragonlib.net.IPacketBase<FinishUploadSoundPacket>
-
Konstruktorübersicht
KonstruktorBeschreibungFinishUploadSoundPacket
(long requestId, int maxSize, SoundFile.Builder file, int initialChannels, long initialDuration) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdecode
(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)
-
Konstruktordetails
-
FinishUploadSoundPacket
public FinishUploadSoundPacket() -
FinishUploadSoundPacket
public FinishUploadSoundPacket(long requestId, int maxSize, SoundFile.Builder file, int initialChannels, long initialDuration)
-
-
Methodendetails
-
encode
- Angegeben von:
encode
in Schnittstellede.mrjulsen.mcdragonlib.net.IPacketBase<FinishUploadSoundPacket>
-
decode
- Angegeben von:
decode
in Schnittstellede.mrjulsen.mcdragonlib.net.IPacketBase<FinishUploadSoundPacket>
-
handle
public void handle(FinishUploadSoundPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier) - Angegeben von:
handle
in Schnittstellede.mrjulsen.mcdragonlib.net.IPacketBase<FinishUploadSoundPacket>
-
getRequestId
public long getRequestId() -
getInitialDuration
public long getInitialDuration() -
getInitialChannels
public int getInitialChannels() -
getFile
-