-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16222f6
commit bc47830
Showing
7 changed files
with
48 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...ain/kotlin/kr/toxicity/hud/bootstrap/fabric/compatibility/PolymerAutoHostCompatibility.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package kr.toxicity.hud.bootstrap.fabric.compatibility | ||
|
||
import kr.toxicity.hud.api.listener.HudListener | ||
import kr.toxicity.hud.api.placeholder.HudPlaceholder | ||
import kr.toxicity.hud.api.trigger.HudTrigger | ||
import kr.toxicity.hud.api.update.UpdateEvent | ||
import kr.toxicity.hud.api.yaml.YamlObject | ||
import kr.toxicity.hud.bootstrap.fabric.FabricBootstrapImpl | ||
import kr.toxicity.hud.util.PLUGIN | ||
|
||
class PolymerAutoHostCompatibility : Compatibility { | ||
|
||
override val website: String = "https://modrinth.com/mod/polymer" | ||
|
||
override val triggers: Map<String, (YamlObject) -> HudTrigger<*>> | ||
get() = mapOf() | ||
override val listeners: Map<String, (YamlObject) -> (UpdateEvent) -> HudListener> | ||
get() = mapOf() | ||
override val numbers: Map<String, HudPlaceholder<Number>> | ||
get() = mapOf() | ||
override val strings: Map<String, HudPlaceholder<String>> | ||
get() = mapOf() | ||
override val booleans: Map<String, HudPlaceholder<Boolean>> | ||
get() = mapOf() | ||
|
||
override fun start() { | ||
(PLUGIN.bootstrap() as FabricBootstrapImpl).skipInitialReload = true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters