aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/events/ServerConnectedEvent.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/events/ServerConnectedEvent.kt')
-rw-r--r--src/main/kotlin/events/ServerConnectedEvent.kt10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/kotlin/events/ServerConnectedEvent.kt b/src/main/kotlin/events/ServerConnectedEvent.kt
index 26897f2..c9bc5e4 100644
--- a/src/main/kotlin/events/ServerConnectedEvent.kt
+++ b/src/main/kotlin/events/ServerConnectedEvent.kt
@@ -1,16 +1,16 @@
package moe.nea.firmament.events
import net.fabricmc.fabric.api.client.networking.v1.ClientPlayConnectionEvents
-import net.minecraft.client.MinecraftClient
-import net.minecraft.client.network.ClientPlayNetworkHandler
-import net.minecraft.network.ClientConnection
+import net.minecraft.client.Minecraft
+import net.minecraft.client.multiplayer.ClientPacketListener
+import net.minecraft.network.Connection
data class ServerConnectedEvent(
- val connection: ClientConnection
+ val connection: Connection
) : FirmamentEvent() {
companion object : FirmamentEventBus<ServerConnectedEvent>() {
init {
- ClientPlayConnectionEvents.INIT.register(ClientPlayConnectionEvents.Init { clientPlayNetworkHandler: ClientPlayNetworkHandler, minecraftClient: MinecraftClient ->
+ ClientPlayConnectionEvents.INIT.register(ClientPlayConnectionEvents.Init { clientPlayNetworkHandler: ClientPacketListener, minecraftClient: Minecraft ->
publishSync(ServerConnectedEvent(clientPlayNetworkHandler.connection))
})
}