Package net.minecraft.server.command
Class PublishCommand
java.lang.Object
net.minecraft.server.command.PublishCommand
public class PublishCommand extends Object
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeALREADY_PUBLISHED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeFAILED_EXCEPTION -
Constructor Summary
Constructors Constructor Description PublishCommand() -
Method Summary
Modifier and Type Method Description private static intexecute(ServerCommandSource source, int port)static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
Field Details
-
FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_EXCEPTION -
ALREADY_PUBLISHED_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ALREADY_PUBLISHED_EXCEPTION
-
-
Constructor Details
-
PublishCommand
public PublishCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
execute
private static int execute(ServerCommandSource source, int port) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-