Class CommonData

java.lang.Object
io.github.kosmx.emotes.common.CommonData

public class CommonData extends Object
static channel to access constant from everywhere in the mod. Including Fabric and Bukkit code.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Wrapper type for huge blobs.
    static final org.slf4j.Logger
     
    static final int
    Maximum packet size that can be sent by the client/received by the server Could have been even bigger, but the paper servers sucks
    static final String
     
    static final String
     
    static final int
    ver 1: older versions ver 2: no network discovery, repeating and bending exists ver 3: network discovery ver 4: not syncing head bending values ver 5: boolean, easing can indicated after the move ver 6: experimental sound sync
    static final String
    bidirectional, Emote playing or repeating Channel for common Emotecraft networking.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
     

    Methods inherited from class java.lang.Object

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

    • MOD_ID

      public static final String MOD_ID
      See Also:
    • MOD_NAME

      public static final String MOD_NAME
      See Also:
    • LOGGER

      public static final org.slf4j.Logger LOGGER
    • networkingVersion

      public static final int networkingVersion
      ver 1: older versions ver 2: no network discovery, repeating and bending exists ver 3: network discovery ver 4: not syncing head bending values ver 5: boolean, easing can indicated after the move ver 6: experimental sound sync

      ver 7: reserved

      --------------------------------------

      ver 8: New networking: sub packet versioning, Collar network ready, sync current tick instead of repeat boolean EmoteUUID in play and stop, no spamming, Eases in bytecodes instead of Strings Only one network ID, not compatibly with earlier versions. sub-packets and sub-versions. probably final version...

      See Also:
    • playEmoteID

      public static final String playEmoteID
      bidirectional, Emote playing or repeating Channel for common Emotecraft networking.
      See Also:
    • emoteStreamID

      public static final String emoteStreamID
      Wrapper type for huge blobs. used for emote sync (since 2.2) Data sent here is going to be unwrapped and sent to playEmote channel handler.

      Servers may completely ignore this channel in play state. see PacketConfig

      See Also:
    • MAX_PACKET_SIZE

      public static final int MAX_PACKET_SIZE
      Maximum packet size that can be sent by the client/received by the server Could have been even bigger, but the paper servers sucks

      Identical to ClientboundCustomPayloadPacket#MAX_PAYLOAD_SIZE

      See Also:
  • Constructor Details

    • CommonData

      public CommonData()
  • Method Details

    • getIDAsString

      public static String getIDAsString(String channel)