aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/ambientaddons/AmbientAddons.kt
diff options
context:
space:
mode:
authorAppability <appable@icloud.com>2022-10-23 12:00:05 -0700
committerAppability <appable@icloud.com>2022-10-23 12:00:05 -0700
commit0576a7f5304565bb58a499b8ccdcda31ed587dc4 (patch)
tree766fad4c88ec8be5b142e338f097b67aa7322234 /src/main/kotlin/com/ambientaddons/AmbientAddons.kt
parent4f25e7948c7e85151a80c17f7d2b25b72675cecf (diff)
downloadAmbientAddons-0576a7f5304565bb58a499b8ccdcda31ed587dc4.tar.gz
AmbientAddons-0576a7f5304565bb58a499b8ccdcda31ed587dc4.tar.bz2
AmbientAddons-0576a7f5304565bb58a499b8ccdcda31ed587dc4.zip
ping command and display
Diffstat (limited to 'src/main/kotlin/com/ambientaddons/AmbientAddons.kt')
-rw-r--r--src/main/kotlin/com/ambientaddons/AmbientAddons.kt13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/main/kotlin/com/ambientaddons/AmbientAddons.kt b/src/main/kotlin/com/ambientaddons/AmbientAddons.kt
index 7b481ce..9f63b13 100644
--- a/src/main/kotlin/com/ambientaddons/AmbientAddons.kt
+++ b/src/main/kotlin/com/ambientaddons/AmbientAddons.kt
@@ -1,7 +1,9 @@
import com.ambientaddons.commands.AmbientCommand
+import com.ambientaddons.commands.PingCommand
import com.ambientaddons.config.Config
import com.ambientaddons.config.PersistentData
import com.ambientaddons.features.display.CatOverlay
+import com.ambientaddons.features.display.PingOverlay
import com.ambientaddons.features.display.WitherShieldOverlay
import com.ambientaddons.features.dungeon.*
import com.ambientaddons.features.dungeon.terminals.MelodyHelper
@@ -47,7 +49,10 @@ class AmbientAddons {
@Mod.EventHandler
fun onInit(event: FMLInitializationEvent) {
- ClientCommandHandler.instance.registerCommand(AmbientCommand())
+ listOf(
+ AmbientCommand(),
+ PingCommand()
+ ).forEach(ClientCommandHandler.instance::registerCommand)
listOf(
this,
SBLocation,
@@ -66,11 +71,13 @@ class AmbientAddons {
DungeonHighlights,
Trapper,
CrimsonFishing,
- CatOverlay
+ CatOverlay,
+ PingOverlay
).forEach(MinecraftForge.EVENT_BUS::register)
keyBinds.values.forEach(ClientRegistry::registerKeyBinding)
guiElements = listOf(
- CatOverlay.element
+ CatOverlay.element,
+ PingOverlay.element
)
}