Class ScheduleCommand
java.lang.Object
net.minecraft.server.commands.ScheduleCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DynamicCommandExceptionTypeprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionTypeprivate static final SuggestionProvider<CommandSourceStack> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregister(CommandDispatcher<CommandSourceStack> dispatcher) private static intremove(CommandSourceStack source, String id) private static intschedule(CommandSourceStack source, Pair<Identifier, Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> callback, int time, boolean replace)
-
Field Details
-
ERROR_SAME_TICK
-
ERROR_CANT_REMOVE
-
ERROR_MACRO
-
SUGGEST_SCHEDULE
-
-
Constructor Details
-
ScheduleCommand
public ScheduleCommand()
-
-
Method Details
-
register
-
schedule
private static int schedule(CommandSourceStack source, Pair<Identifier, Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> callback, int time, boolean replace) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
remove
- Throws:
CommandSyntaxException
-