Class EmotePacket

java.lang.Object
io.github.kosmx.emotes.common.network.EmotePacket

public final class EmotePacket extends Object
Send everything emotes mod data...
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
    EmotePacket builder.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final NetData
     
    static final it.unimi.dsi.fastutil.bytes.Byte2ByteMap
     
    static final EmotePacket
    Sentinel returned by the decoder when an incoming packet can't be parsed and must be dropped instead of tearing down the netty connection.
  • Constructor Summary

    Constructors
    Constructor
    Description
    EmotePacket(@NotNull io.netty.buffer.ByteBuf byteBuf, PacketBound target)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(io.netty.buffer.ByteBuf buf, PacketBound target)
    Write packet to a ByteBuf.

    Methods inherited from class Object

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

    • defaultVersions

      public static final it.unimi.dsi.fastutil.bytes.Byte2ByteMap defaultVersions
    • data

      public final NetData data
    • EMPTY

      public static final EmotePacket EMPTY
      Sentinel returned by the decoder when an incoming packet can't be parsed and must be dropped instead of tearing down the netty connection. Its PacketTask.UNKNOWN purpose makes the receiver skip it.
  • Constructor Details

    • EmotePacket

      public EmotePacket(@NotNull @NotNull io.netty.buffer.ByteBuf byteBuf, PacketBound target)
  • Method Details

    • write

      public void write(io.netty.buffer.ByteBuf buf, PacketBound target)
      Write packet to a ByteBuf.