diff options
author | inglettronald <inglettronald@gmail.com> | 2023-06-11 17:19:53 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-06-11 17:19:53 -0500 |
commit | 63012eec9f39fb3752bcded90bfc710ab3d05219 (patch) | |
tree | a2b9ef95dcab48108d875ff51cb90e77909aa89d /src/main/kotlin/com/dulkirfabric/Registrations.kt | |
parent | f3f6da9f50edfbe9ed3be42fa16146210e60fbf3 (diff) | |
download | DulkirMod-Fabric-63012eec9f39fb3752bcded90bfc710ab3d05219.tar.gz DulkirMod-Fabric-63012eec9f39fb3752bcded90bfc710ab3d05219.tar.bz2 DulkirMod-Fabric-63012eec9f39fb3752bcded90bfc710ab3d05219.zip |
yeah I'm not documenting this today
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/Registrations.kt')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/Registrations.kt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/Registrations.kt b/src/main/kotlin/com/dulkirfabric/Registrations.kt index 3122924..a3ab96d 100644 --- a/src/main/kotlin/com/dulkirfabric/Registrations.kt +++ b/src/main/kotlin/com/dulkirfabric/Registrations.kt @@ -7,10 +7,13 @@ import com.dulkirfabric.commands.JoinDungeonCommands import com.dulkirfabric.events.ChatReceivedEvent import com.dulkirfabric.events.ClientTickEvent import com.dulkirfabric.events.OverlayReceivedEvent +import com.dulkirfabric.events.WorldRenderLastEvent import com.dulkirfabric.features.KeyShortCutImpl +import com.dulkirfabric.features.RenderBoxTest import net.fabricmc.fabric.api.client.command.v2.ClientCommandRegistrationCallback import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents import net.fabricmc.fabric.api.client.message.v1.ClientReceiveMessageEvents +import net.fabricmc.fabric.api.client.rendering.v1.WorldRenderEvents /** @@ -42,6 +45,7 @@ object Registrations { fun registerEventListeners() { EVENT_BUS.subscribe(DulkirModFabric) EVENT_BUS.subscribe(KeyShortCutImpl) + EVENT_BUS.subscribe(RenderBoxTest) } fun registerEvents() { @@ -55,5 +59,8 @@ object Registrations { else !ChatReceivedEvent(message.toString()).post() } ) + WorldRenderEvents.END.register( + WorldRenderEvents.End { context -> WorldRenderLastEvent(context).post()} + ) } }
\ No newline at end of file |