Class TCDCommonsNetworkHandler

java.lang.Object
io.github.thecsdev.tcdcommons.network.TCDCommonsNetworkHandler

public final class TCDCommonsNetworkHandler extends Object
  • Field Details

    • S2C_PLAYER_BADGES

      public static final net.minecraft.util.Identifier S2C_PLAYER_BADGES
      The unique Identifier of the CustomPayloadS2CPacket that sends a client their list of PlayerBadges.
  • Method Details

    • init

      @Internal public static void init()
    • s2c_sendPlayerBadges

      public static boolean s2c_sendPlayerBadges(net.minecraft.server.network.ServerPlayerEntity player)
      Sends a given ServerPlayerEntity a list of their PlayerBadges that have been assigned to them.
      Parameters:
      player - The target ServerPlayerEntity.
      Returns:
      True if the packet was sent, and false if the packet was not sent because the player doesn't have any PlayerBadges assigned to them.