Skip to content

Commit

Permalink
style: format code with google-java-format
Browse files Browse the repository at this point in the history
Format code with google-java-format

This commit fixes the style issues introduced in 76d998a according to the output
from google-java-format.

Details: https://app.deepsource.com/gh/Nat1anWasTaken/Notebot/transform/7194607d-0ed9-46a0-815b-cede750b8b5f/
  • Loading branch information
deepsource-autofix[bot] committed May 24, 2023
1 parent 76d998a commit 18d6a5b
Show file tree
Hide file tree
Showing 16 changed files with 730 additions and 710 deletions.
32 changes: 16 additions & 16 deletions src/main/java/xyz/nat1an/notebot/ModRegistries.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
import xyz.nat1an.notebot.commands.queue.NotebotQueueRemoveCommand;

public class ModRegistries {
public static void registerModStuff() {
ModRegistries.registerCommands();
ModRegistries.registerEvents();
}
public static void registerModStuff() {
ModRegistries.registerCommands();
ModRegistries.registerEvents();
}

private static void registerCommands() {
ClientCommandRegistrationCallback.EVENT.register(NotebotInfoCommand::register);
ClientCommandRegistrationCallback.EVENT.register(NotebotStartCommand::register);
ClientCommandRegistrationCallback.EVENT.register(NotebotStopCommand::register);
private static void registerCommands() {
ClientCommandRegistrationCallback.EVENT.register(NotebotInfoCommand::register);
ClientCommandRegistrationCallback.EVENT.register(NotebotStartCommand::register);
ClientCommandRegistrationCallback.EVENT.register(NotebotStopCommand::register);

ClientCommandRegistrationCallback.EVENT.register(NotebotQueueCleanCommand::register);
ClientCommandRegistrationCallback.EVENT.register(NotebotQueueAddCommand::register);
ClientCommandRegistrationCallback.EVENT.register(NotebotQueueRemoveCommand::register);
ClientCommandRegistrationCallback.EVENT.register(NotebotQueueCommand::register);
}
ClientCommandRegistrationCallback.EVENT.register(NotebotQueueCleanCommand::register);
ClientCommandRegistrationCallback.EVENT.register(NotebotQueueAddCommand::register);
ClientCommandRegistrationCallback.EVENT.register(NotebotQueueRemoveCommand::register);
ClientCommandRegistrationCallback.EVENT.register(NotebotQueueCommand::register);
}

private static void registerEvents() {
ClientTickEvents.END_CLIENT_TICK.register(NotebotPlayer::onTick);
}
private static void registerEvents() {
ClientTickEvents.END_CLIENT_TICK.register(NotebotPlayer::onTick);
}
}
28 changes: 14 additions & 14 deletions src/main/java/xyz/nat1an/notebot/Notebot.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@
import xyz.nat1an.notebot.utils.NotebotFileManager;

public class Notebot 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("notebot");
public static final MinecraftClient mc = MinecraftClient.getInstance();
// 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("notebot");
public static final MinecraftClient mc = MinecraftClient.getInstance();

@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.
@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!");

NotebotFileManager.init();
NotebotFileManager.init();

ModRegistries.registerModStuff();
}
ModRegistries.registerModStuff();
}
}
Loading

0 comments on commit 18d6a5b

Please sign in to comment.