Class LegacyNBSPacket

java.lang.Object
io.github.kosmx.emotes.common.nbsplayer.LegacyNBSPacket

@Deprecated public class LegacyNBSPacket extends Object
Deprecated.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    calculateMessageSize(net.raphimc.noteblocklib.format.nbs.model.NbsSong song)
    Deprecated.
    Warning! Works incorrectly when sending extra data
    static int
    getLayerMessageSize(net.raphimc.noteblocklib.format.nbs.model.NbsLayer layer)
    Deprecated.
     
    static net.raphimc.noteblocklib.format.nbs.model.NbsSong
    Deprecated.
     
    static void
    write(net.raphimc.noteblocklib.format.nbs.model.NbsSong song, ByteBuffer buf)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LegacyNBSPacket

      public LegacyNBSPacket()
      Deprecated.
  • Method Details

    • write

      public static void write(net.raphimc.noteblocklib.format.nbs.model.NbsSong song, ByteBuffer buf)
      Deprecated.
    • read

      public static net.raphimc.noteblocklib.format.nbs.model.NbsSong read(ByteBuffer buf) throws IOException
      Deprecated.
      Parameters:
      buf - input ByteBuf
      Returns:
      nbs song
      Throws:
      IOException
    • calculateMessageSize

      public static int calculateMessageSize(net.raphimc.noteblocklib.format.nbs.model.NbsSong song)
      Deprecated.
      Warning! Works incorrectly when sending extra data
      Parameters:
      song - song to send
      Returns:
      estimated size
    • getLayerMessageSize

      public static int getLayerMessageSize(net.raphimc.noteblocklib.format.nbs.model.NbsLayer layer)
      Deprecated.