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.DynamicCommandExceptionType
ALREADY_PUBLISHED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
FAILED_EXCEPTION
-
Constructor Summary
Constructors Constructor Description PublishCommand()
-
Method Summary
Modifier and Type Method Description private static int
execute(ServerCommandSource source, int port)
static void
register(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
-