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