Klasse SoundDataPacket

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

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

    • SoundDataPacket

      public SoundDataPacket()
    • SoundDataPacket

      public SoundDataPacket(long soundId, int index, int bufferSize, boolean hasNext, byte[] data)
  • Methodendetails

    • encode

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

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

      public void handle(SoundDataPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier)
      Angegeben von:
      handle in Schnittstelle de.mrjulsen.mcdragonlib.net.IPacketBase<SoundDataPacket>
    • getSoundId

      public long getSoundId()
    • getIndex

      public int getIndex()
    • getBufferSize

      public int getBufferSize()
    • isHasNext

      public boolean isHasNext()
    • getData

      public byte[] getData()
    • compareTo

      public int compareTo(SoundDataPacket o)
      Angegeben von:
      compareTo in Schnittstelle Comparable<SoundDataPacket>