Class WildfireSync

java.lang.Object
com.wildfire.common.networking.WildfireSync

public final class WildfireSync extends Object
  • Field Details

    • MARKER

      public static final org.slf4j.Marker MARKER
  • Method Details

    • sendToAllClients

      public static void sendToAllClients(net.minecraft.server.level.ServerPlayer toSync, PlayerConfigHolder playerConfig)
      Sync a player's configuration to all nearby connected players
      Parameters:
      toSync - The player to sync
      playerConfig - The configuration for the target player
    • sendToClient

      public static void sendToClient(net.minecraft.server.level.ServerPlayer sendTo, PlayerConfigHolder toSync)
      Sync a player's configuration to another connected player
      Parameters:
      sendTo - The player to send the sync to
      toSync - The configuration for the player being synced
    • sendToServer

      public static void sendToServer(net.minecraft.network.Connection connection, PlayerConfigHolder plr)
      Send the client player's configuration to the server for syncing to other players
      Parameters:
      plr - The configuration for the client player
      API Note:
      Only call on the client