Skip to content

Commit

Permalink
Fixed #35 use spaces instead of \t
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHillcox authored and modmuss50 committed Apr 21, 2023
1 parent 75a062a commit feb388e
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
}
}
24 changes: 12 additions & 12 deletions scripts/src/lib/template/templates/entrypoint/Entrypoint.java.eta
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
}
}
16 changes: 8 additions & 8 deletions scripts/src/lib/template/templates/entrypoint/Entrypoint.kt.eta
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
}
}

0 comments on commit feb388e

Please sign in to comment.