diff --git a/scripts/src/lib/template/templates/entrypoint/ClientEntrypoint.java.eta b/scripts/src/lib/template/templates/entrypoint/ClientEntrypoint.java.eta index df538a89..555a906c 100644 --- a/scripts/src/lib/template/templates/entrypoint/ClientEntrypoint.java.eta +++ b/scripts/src/lib/template/templates/entrypoint/ClientEntrypoint.java.eta @@ -3,8 +3,8 @@ package <%= it.package %>; import net.fabricmc.api.ClientModInitializer; public class <%= it.className %> implements ClientModInitializer { - @Override - public void onInitializeClient() { - // This entrypoint is suitable for setting up client-specific logic, such as rendering. - } + @Override + public void onInitializeClient() { + // This entrypoint is suitable for setting up client-specific logic, such as rendering. + } } \ No newline at end of file diff --git a/scripts/src/lib/template/templates/entrypoint/ClientEntrypoint.kt.eta b/scripts/src/lib/template/templates/entrypoint/ClientEntrypoint.kt.eta index d572be72..a2b63814 100644 --- a/scripts/src/lib/template/templates/entrypoint/ClientEntrypoint.kt.eta +++ b/scripts/src/lib/template/templates/entrypoint/ClientEntrypoint.kt.eta @@ -3,7 +3,7 @@ package <%= it.package %> import net.fabricmc.api.ClientModInitializer object <%= it.className %> : ClientModInitializer { - override fun onInitializeClient() { - // This entrypoint is suitable for setting up client-specific logic, such as rendering. - } + override fun onInitializeClient() { + // This entrypoint is suitable for setting up client-specific logic, such as rendering. + } } \ No newline at end of file diff --git a/scripts/src/lib/template/templates/entrypoint/DataGeneratorEntrypoint.java.eta b/scripts/src/lib/template/templates/entrypoint/DataGeneratorEntrypoint.java.eta index 4e6d199a..8c661808 100644 --- a/scripts/src/lib/template/templates/entrypoint/DataGeneratorEntrypoint.java.eta +++ b/scripts/src/lib/template/templates/entrypoint/DataGeneratorEntrypoint.java.eta @@ -4,8 +4,8 @@ import net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint; import net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator; public class <%= it.className %> implements DataGeneratorEntrypoint { - @Override - public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) { + @Override + public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) { - } + } } diff --git a/scripts/src/lib/template/templates/entrypoint/DataGeneratorEntrypoint.kt.eta b/scripts/src/lib/template/templates/entrypoint/DataGeneratorEntrypoint.kt.eta index 17261b9d..0adb31d1 100644 --- a/scripts/src/lib/template/templates/entrypoint/DataGeneratorEntrypoint.kt.eta +++ b/scripts/src/lib/template/templates/entrypoint/DataGeneratorEntrypoint.kt.eta @@ -4,6 +4,6 @@ import net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint import net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator object <%= it.className %> : DataGeneratorEntrypoint { - override fun onInitializeDataGenerator(fabricDataGenerator: FabricDataGenerator) { - } + override fun onInitializeDataGenerator(fabricDataGenerator: FabricDataGenerator) { + } } \ No newline at end of file diff --git a/scripts/src/lib/template/templates/entrypoint/Entrypoint.java.eta b/scripts/src/lib/template/templates/entrypoint/Entrypoint.java.eta index de841615..7cebb42e 100644 --- a/scripts/src/lib/template/templates/entrypoint/Entrypoint.java.eta +++ b/scripts/src/lib/template/templates/entrypoint/Entrypoint.java.eta @@ -9,17 +9,17 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; <% } %> public class <%= it.className %> implements ModInitializer { - // This logger is used to write text to the console and the log file. - // It is considered best practice to use your mod id as the logger's name. - // That way, it's clear which mod wrote info, warnings, and errors. -<% if (it.slf4j) { %> public static final Logger LOGGER = LoggerFactory.getLogger("<%= it.modid %>"); -<% } else { %> public static final Logger LOGGER = LogManager.getLogger("<%= it.modid %>");<% } %> - @Override - public void onInitialize() { - // This code runs as soon as Minecraft is in a mod-load-ready state. - // However, some things (like resources) may still be uninitialized. - // Proceed with mild caution. + // This logger is used to write text to the console and the log file. + // It is considered best practice to use your mod id as the logger's name. + // That way, it's clear which mod wrote info, warnings, and errors. +<% if (it.slf4j) { %> public static final Logger LOGGER = LoggerFactory.getLogger("<%= it.modid %>"); +<% } else { %> public static final Logger LOGGER = LogManager.getLogger("<%= it.modid %>");<% } %> + @Override + public void onInitialize() { + // This code runs as soon as Minecraft is in a mod-load-ready state. + // However, some things (like resources) may still be uninitialized. + // Proceed with mild caution. - LOGGER.info("Hello Fabric world!"); - } + LOGGER.info("Hello Fabric world!"); + } } \ No newline at end of file diff --git a/scripts/src/lib/template/templates/entrypoint/Entrypoint.kt.eta b/scripts/src/lib/template/templates/entrypoint/Entrypoint.kt.eta index 51f6b81e..daa027b7 100644 --- a/scripts/src/lib/template/templates/entrypoint/Entrypoint.kt.eta +++ b/scripts/src/lib/template/templates/entrypoint/Entrypoint.kt.eta @@ -4,12 +4,12 @@ import net.fabricmc.api.ModInitializer <% if (it.slf4j) { %>import org.slf4j.LoggerFactory <% } else { %>import org.apache.logging.log4j.LogManager<% } %> object <%= it.className %> : ModInitializer { -<% if (it.slf4j) { %> private val logger = LoggerFactory.getLogger("<%= it.modid %>") -<% } else { %> private val logger = LogManager.getLogger("<%= it.modid %>")<% } %> - override fun onInitialize() { - // This code runs as soon as Minecraft is in a mod-load-ready state. - // However, some things (like resources) may still be uninitialized. - // Proceed with mild caution. - logger.info("Hello Fabric world!") - } +<% if (it.slf4j) { %> private val logger = LoggerFactory.getLogger("<%= it.modid %>") +<% } else { %> private val logger = LogManager.getLogger("<%= it.modid %>")<% } %> + override fun onInitialize() { + // This code runs as soon as Minecraft is in a mod-load-ready state. + // However, some things (like resources) may still be uninitialized. + // Proceed with mild caution. + logger.info("Hello Fabric world!") + } } \ No newline at end of file