Class TCDCommonsNetworkHandler
java.lang.Object
io.github.thecsdev.tcdcommons.network.TCDCommonsNetworkHandler
-
Field Summary
Modifier and TypeFieldDescriptionstatic final net.minecraft.util.Identifier
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
init()
static boolean
s2c_sendPlayerBadges
(net.minecraft.server.network.ServerPlayerEntity player) Sends a givenServerPlayerEntity
a list of theirPlayerBadge
s that have been assigned to them.
-
Field Details
-
S2C_PLAYER_BADGES
public static final net.minecraft.util.Identifier S2C_PLAYER_BADGES
-
-
Method Details
-
init
@Internal public static void init() -
s2c_sendPlayerBadges
public static boolean s2c_sendPlayerBadges(net.minecraft.server.network.ServerPlayerEntity player) Sends a givenServerPlayerEntity
a list of theirPlayerBadge
s that have been assigned to them.- Parameters:
player
- The targetServerPlayerEntity
.- Returns:
- True if the packet was sent, and false if the packet was not sent
because the player doesn't have any
PlayerBadge
s assigned to them.
-