Klasse UploadSoundPacket

java.lang.Object
de.mrjulsen.dragnsounds.net.cts.UploadSoundPacket
Alle implementierten Schnittstellen:
de.mrjulsen.mcdragonlib.net.IPacketBase<UploadSoundPacket>, Comparable<UploadSoundPacket>

public class UploadSoundPacket extends Object implements de.mrjulsen.mcdragonlib.net.IPacketBase<UploadSoundPacket>, Comparable<UploadSoundPacket>
  • Konstruktordetails

    • UploadSoundPacket

      public UploadSoundPacket()
    • UploadSoundPacket

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

    • encode

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

      public UploadSoundPacket decode(net.minecraft.network.FriendlyByteBuf buf)
      Angegeben von:
      decode in Schnittstelle de.mrjulsen.mcdragonlib.net.IPacketBase<UploadSoundPacket>
    • handle

      public void handle(UploadSoundPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier)
      Angegeben von:
      handle in Schnittstelle 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)
      Angegeben von:
      compareTo in Schnittstelle Comparable<UploadSoundPacket>