From 297cb01f220a617dd08096467978b2fccbc27695 Mon Sep 17 00:00:00 2001 From: nea Date: Wed, 1 Nov 2023 18:50:11 +0100 Subject: Add documentation --- .../java/net/minecraftforge/fml/nea/moe/modernjava/IAMFML.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main/java/net/minecraftforge/fml') diff --git a/src/main/java/net/minecraftforge/fml/nea/moe/modernjava/IAMFML.java b/src/main/java/net/minecraftforge/fml/nea/moe/modernjava/IAMFML.java index 99ee7b0..d4d2844 100644 --- a/src/main/java/net/minecraftforge/fml/nea/moe/modernjava/IAMFML.java +++ b/src/main/java/net/minecraftforge/fml/nea/moe/modernjava/IAMFML.java @@ -1,7 +1,16 @@ package net.minecraftforge.fml.nea.moe.modernjava; +import net.minecraftforge.fml.relauncher.FMLSecurityManager; + +/** + * Class in a package starting with {@code net.minecraftforge.fml} in order to easily bypass the {@link FMLSecurityManager} + * which disallows calling {@link System#exit(int)}. + */ public class IAMFML { + /** + * Calls {@link System#exit(int)} + */ public static void shutdown(int code) { System.exit(code); } -- cgit