Class DialogCommand
java.lang.Object
net.minecraft.server.commands.DialogCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final CommandResponseTracker.Messages<ServerPlayer> private static final CommandResponseTracker.Messages<ServerPlayer> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intclearDialog(CommandSourceStack sender, Collection<ServerPlayer> targets) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context) private static intshowDialog(CommandSourceStack sender, Collection<ServerPlayer> targets, Holder<Dialog> dialog)
-
Field Details
-
RESPONSE_SHOW
-
RESPONSE_CLEAR
-
-
Constructor Details
-
DialogCommand
public DialogCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context) -
showDialog
private static int showDialog(CommandSourceStack sender, Collection<ServerPlayer> targets, Holder<Dialog> dialog) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
clearDialog
private static int clearDialog(CommandSourceStack sender, Collection<ServerPlayer> targets) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-