Add api status annotations

This commit is contained in:
TheMode 2021-04-13 02:21:03 +02:00
parent 56439a2330
commit 3b8ed1df32

View File

@ -2,6 +2,7 @@ package net.minestom.server.terminal;
import net.minestom.server.MinecraftServer; import net.minestom.server.MinecraftServer;
import net.minestom.server.command.CommandManager; import net.minestom.server.command.CommandManager;
import org.jetbrains.annotations.ApiStatus;
import org.jline.reader.EndOfFileException; import org.jline.reader.EndOfFileException;
import org.jline.reader.LineReader; import org.jline.reader.LineReader;
import org.jline.reader.LineReaderBuilder; import org.jline.reader.LineReaderBuilder;
@ -18,6 +19,7 @@ public class MinestomTerminal {
private static volatile boolean running = false; private static volatile boolean running = false;
@ApiStatus.Internal
public static void start() { public static void start() {
Terminal terminal = null; Terminal terminal = null;
try { try {
@ -42,6 +44,7 @@ public class MinestomTerminal {
} }
} }
@ApiStatus.Internal
public static void stop() { public static void stop() {
running = false; running = false;
} }