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 Details

    • UploadSoundPacket

      public UploadSoundPacket()
    • UploadSoundPacket

      public UploadSoundPacket(long requestId, int index, boolean hasMore, int maxSize, byte[] data)
  • Method Details

    • encode

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

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

      public void handle(UploadSoundPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier)
      Specified by:
      handle in interface de.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

      public int compareTo(UploadSoundPacket o)
      Specified by:
      compareTo in interface Comparable<UploadSoundPacket>