mirror of
https://github.com/JonasunderscoreJones/ConsoleMC.git
synced 2025-10-23 02:39:17 +02:00
Added Basic Functionality
This commit is contained in:
parent
a1444e4276
commit
c215bc41dd
27 changed files with 844 additions and 0 deletions
23
src/main/java/me/jonasjones/consolemc/ConsoleMC.java
Normal file
23
src/main/java/me/jonasjones/consolemc/ConsoleMC.java
Normal file
|
@ -0,0 +1,23 @@
|
|||
package me.jonasjones.consolemc;
|
||||
|
||||
import me.jonasjones.consolemc.command.RunCommand;
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class ConsoleMC 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.
|
||||
public static final Logger LOGGER = LoggerFactory.getLogger("consolemc");
|
||||
|
||||
private static void registerCommands() {
|
||||
CommandRegistrationCallback.EVENT.register(RunCommand::register);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
registerCommands();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue