mirror of
https://github.com/TeamMidnightDust/MidnightLib.git
synced 2025-12-18 10:15:08 +01:00
NeoForge 1.21
- Added new method to get Modloader/Platform name in common classes
This commit is contained in:
@@ -7,6 +7,11 @@ import net.minecraft.server.command.ServerCommandSource;
|
||||
import java.nio.file.Path;
|
||||
|
||||
public class PlatformFunctions {
|
||||
@ExpectPlatform
|
||||
public static String getPlatformName() {
|
||||
// Just throw an error, the content should get replaced at runtime.
|
||||
throw new AssertionError();
|
||||
}
|
||||
@ExpectPlatform
|
||||
public static Path getConfigDirectory() {
|
||||
// Just throw an error, the content should get replaced at runtime.
|
||||
|
||||
Reference in New Issue
Block a user