package dev.crucifixbeta.api.events.impl;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.network.ServerAddress;
import net.minecraft.client.network.ServerInfo;

@Environment(EnvType.CLIENT)
public class ServerConnectBeginEvent {
   private static final ServerConnectBeginEvent INSTANCE = new ServerConnectBeginEvent();
   public ServerAddress address;
   public ServerInfo info;

   public static ServerConnectBeginEvent get(ServerAddress address, ServerInfo info) {
      INSTANCE.address = address;
      INSTANCE.info = info;
      return INSTANCE;
   }
}
