mirror of
https://github.com/TeamMidnightDust/MidnightControls.git
synced 2025-12-13 15:25:08 +01:00
- Cursor position is now float instead of integer, making movement way smoother - Added a fallback cursor to use in Wayland sessions
55 lines
1.4 KiB
Java
55 lines
1.4 KiB
Java
/*
|
|
* Copyright © 2021 LambdAurora <aurora42lambda@gmail.com>
|
|
*
|
|
* This file is part of midnightcontrols.
|
|
*
|
|
* Licensed under the MIT license. For more information,
|
|
* see the LICENSE file.
|
|
*/
|
|
|
|
package eu.midnightdust.midnightcontrols;
|
|
|
|
import eu.midnightdust.lib.util.PlatformFunctions;
|
|
import net.minecraft.util.Identifier;
|
|
import org.apache.logging.log4j.LogManager;
|
|
import org.apache.logging.log4j.Logger;
|
|
|
|
/**
|
|
* Represents the MidnightControls mod.
|
|
*
|
|
* @author LambdAurora & Motschen
|
|
* @version 1.8.0
|
|
* @since 1.0.0
|
|
*/
|
|
public class MidnightControls {
|
|
public static boolean isExtrasLoaded;
|
|
|
|
public static final Logger logger = LogManager.getLogger("MidnightControls");
|
|
|
|
public static void init() {
|
|
isExtrasLoaded = PlatformFunctions.isModLoaded("midnightcontrols-extra");
|
|
log("Initializing MidnightControls...");
|
|
}
|
|
public static Identifier id(String path) {
|
|
return Identifier.of(MidnightControlsConstants.NAMESPACE, path);
|
|
}
|
|
|
|
/**
|
|
* Prints a message to the terminal.
|
|
*
|
|
* @param info the message to print
|
|
*/
|
|
public static void log(String info) {
|
|
logger.info("[MidnightControls] {}", info);
|
|
}
|
|
|
|
/**
|
|
* Prints a warning to the terminal.
|
|
*
|
|
* @param warning the warning to print
|
|
*/
|
|
public static void warn(String warning) {
|
|
logger.warn("[MidnightControls] {}", warning);
|
|
}
|
|
}
|