Add a logger to CommonSnow.kt, and rename it to Snowy.kt.

This commit is contained in:
Username404-59 2021-04-09 14:27:15 +02:00
parent 0135d1b6ed
commit 3b55558ca4
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
4 changed files with 17 additions and 11 deletions

View File

@ -1,7 +0,0 @@
package fr.username404.snowygui
abstract class CommonSnow {
fun atInit() {
}
}

View File

@ -0,0 +1,13 @@
package fr.username404.snowygui
import org.apache.logging.log4j.LogManager
import org.apache.logging.log4j.Logger
abstract class Snowy {
companion object {
val logs: Logger = LogManager.getLogger("Snowy")
}
fun atInit() {
logs.info("Init point of SnowyGUI hit.")
}
}

View File

@ -1,8 +1,8 @@
package fr.username404.snowygui.fabric
import fr.username404.snowygui.CommonSnow
import fr.username404.snowygui.Snowy
import net.fabricmc.api.ClientModInitializer
class FabricInit: CommonSnow(), ClientModInitializer {
class FabricInit: Snowy(), ClientModInitializer {
override fun onInitializeClient() = atInit()
}

View File

@ -1,6 +1,6 @@
package fr.username404.snowygui.forge
import fr.username404.snowygui.CommonSnow
import fr.username404.snowygui.Snowy
import fr.username404.snowygui.config.SnowyConfigScreen
import net.minecraftforge.fml.ExtensionPoint
import net.minecraftforge.fml.ModLoadingContext
@ -9,7 +9,7 @@ import java.util.function.BiFunction
import java.util.function.Supplier
@Mod("snowygui")
class ForgeInit: CommonSnow() {
class ForgeInit: Snowy() {
init {
atInit()
ModLoadingContext.get().registerExtensionPoint(