Class BetterStatsNetworkHandler

java.lang.Object
io.github.thecsdev.betterstats.network.BetterStatsNetworkHandler

@Internal public final class BetterStatsNetworkHandler extends Object
Represents the server-side network handler for BetterStats.
  • Field Details

    • TXT_TOGGLE_TOOLTIP

      public static final net.minecraft.text.Text TXT_TOGGLE_TOOLTIP
    • NETWORK_VERSION

      public static final int NETWORK_VERSION
      See Also:
    • S2C_I_HAVE_BSS

      public static final net.minecraft.util.Identifier S2C_I_HAVE_BSS
    • C2S_I_HAVE_BSS

      public static final net.minecraft.util.Identifier C2S_I_HAVE_BSS
    • C2S_LIVE_STATS

      public static final net.minecraft.util.Identifier C2S_LIVE_STATS
    • PlayerPrefs

      public static final WeakHashMap<net.minecraft.server.network.ServerPlayerEntity,PlayerPreferences> PlayerPrefs
  • Method Details

    • init

      public static void init()
    • s2c_iHaveBSS

      public static void s2c_iHaveBSS(net.minecraft.server.network.ServerPlayerEntity player)
      Sends the S2C_I_HAVE_BSS packet to a given ServerPlayerEntity.
    • s2c_liveStats

      public static void s2c_liveStats(net.minecraft.server.network.ServerPlayerEntity player)
      Handles live stats updates.