Package net.minecraft.server.commands
Class PublishCommand
java.lang.Object
net.minecraft.server.commands.PublishCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MutableComponentgetSuccessMessage(int port) private static intpublish(CommandSourceStack source, int port, boolean cheats, GameType gameMode) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher)
-
Field Details
-
ERROR_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_FAILED -
ERROR_ALREADY_PUBLISHED
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_ALREADY_PUBLISHED
-
-
Constructor Details
-
PublishCommand
public PublishCommand()
-
-
Method Details
-
register
-
publish
private static int publish(CommandSourceStack source, int port, boolean cheats, @Nullable GameType gameMode) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getSuccessMessage
-