Class BetterStatsNetworkHandler
java.lang.Object
io.github.thecsdev.betterstats.network.BetterStatsNetworkHandler
Represents the server-side network handler for
BetterStats
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final net.minecraft.util.Identifier
static final net.minecraft.util.Identifier
static final int
static final WeakHashMap
<net.minecraft.server.network.ServerPlayerEntity, PlayerPreferences> static final net.minecraft.util.Identifier
static final net.minecraft.text.Text
static final net.minecraft.text.Text
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
init()
static void
s2c_iHaveBSS
(net.minecraft.server.network.ServerPlayerEntity player) Sends theS2C_I_HAVE_BSS
packet to a givenServerPlayerEntity
.static void
s2c_liveStats
(net.minecraft.server.network.ServerPlayerEntity player) Handles live stats updates.
-
Field Details
-
TXT_TOGGLE_TOOLTIP
public static final net.minecraft.text.Text TXT_TOGGLE_TOOLTIP -
TXT_CONSENT_WARNING
public static final net.minecraft.text.Text TXT_CONSENT_WARNING -
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 theS2C_I_HAVE_BSS
packet to a givenServerPlayerEntity
. -
s2c_liveStats
public static void s2c_liveStats(net.minecraft.server.network.ServerPlayerEntity player) Handles live stats updates.
-