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 Details

    • FinishUploadSoundPacket

      public FinishUploadSoundPacket()
    • FinishUploadSoundPacket

      public FinishUploadSoundPacket(long requestId, int maxSize, SoundFile.Builder file, int initialChannels, long initialDuration)
  • Method Details

    • encode

      public void encode(FinishUploadSoundPacket packet, net.minecraft.network.FriendlyByteBuf buf)
      Specified by:
      encode in interface de.mrjulsen.mcdragonlib.net.IPacketBase<FinishUploadSoundPacket>
    • decode

      public FinishUploadSoundPacket decode(net.minecraft.network.FriendlyByteBuf buf)
      Specified by:
      decode in interface de.mrjulsen.mcdragonlib.net.IPacketBase<FinishUploadSoundPacket>
    • handle

      public void handle(FinishUploadSoundPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier)
      Specified by:
      handle in interface de.mrjulsen.mcdragonlib.net.IPacketBase<FinishUploadSoundPacket>
    • getRequestId

      public long getRequestId()
    • getInitialDuration

      public long getInitialDuration()
    • getInitialChannels

      public int getInitialChannels()
    • getFile

      public SoundFile.Builder getFile()