net.minecraft.server.command

public class TimeCommand

net.minecraft.server.commands.TimeCommand
net.minecraft.server.commands.TimeCommand
net.minecraft.class_3149
net.minecraft.server.command.TimeCommand

Field summary

Modifier and TypeField
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_NO_DEFAULT_CLOCK
ERROR_NO_DEFAULT_CLOCK
field_1_991
NO_DEFAULT_CLOCK_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
ERROR_NO_TIME_MARKER_FOUND
ERROR_NO_TIME_MARKER_FOUND
field_1_992
NO_TIME_MARKER_FOUND_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
ERROR_WRONG_TIMELINE_FOR_CLOCK
ERROR_WRONG_TIMELINE_FOR_CLOCK
field_1_993
WRONG_TIMELINE_FOR_CLOCK_EXCEPTION
private static final int
MAX_CLOCK_RATE
MAX_CLOCK_RATE
field_1_2457
MAX_CLOCK_RATE

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static void
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
method_1_940(com.mojang.brigadier.CommandDispatcher<class_2168> arg0, class_7157 arg1)
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess commandRegistryAccess)
private static <A extends com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, A>> A
addClockNodes(CommandBuildContext context, A node, TimeCommand$ClockGetter clockGetter)
addClockNodes(CommandBuildContext context, A node, TimeCommand$ClockGetter clockGetter)
method_1_909(class_7157 arg0, A arg1, class_3149$class_1_104 arg2)
createClockSubcommands(CommandRegistryAccess commandRegistryAccess, A root, TimeCommand$ClockProvider clockProvider)
private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestTimeMarkers(CommandSourceStack source, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Holder<WorldClock> clock)
suggestTimeMarkers(CommandSourceStack source, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Holder<WorldClock> clock)
method_1_944(class_2168 arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1, class_6880<class_1_94> arg2)
suggestTimeMarkers(ServerCommandSource source, com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder, RegistryEntry<WorldClockKey> clock)
private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestTimelines(CommandSourceStack source, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Holder<WorldClock> clock)
suggestTimelines(CommandSourceStack source, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Holder<WorldClock> clock)
method_1_945(class_2168 arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1, class_6880<class_1_94> arg2)
suggestTimelines(ServerCommandSource source, com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder, RegistryEntry<WorldClockKey> clock)
private static int
queryGameTime(CommandSourceStack source)
queryGameTime(CommandSourceStack source)
method_13796(class_2168 arg0)
executeQuery(ServerCommandSource source)
private static int
queryTime(CommandSourceStack source, Holder<WorldClock> clock)
queryTime(CommandSourceStack source, Holder<WorldClock> clock)
method_1_937(class_2168 arg0, class_6880<class_1_94> arg1)
queryTime(ServerCommandSource source, RegistryEntry<WorldClockKey> clock)
private static int
queryTimelineTicks(CommandSourceStack source, Holder<WorldClock> clock, Holder<Timeline> timeline)
queryTimelineTicks(CommandSourceStack source, Holder<WorldClock> clock, Holder<Timeline> timeline)
method_1_939(class_2168 arg0, class_6880<class_1_94> arg1, class_6880<class_12329> arg2)
queryTimeOnTimeline(ServerCommandSource source, RegistryEntry<WorldClockKey> clock, RegistryEntry<Timeline> timeline)
private static int
queryTimelineRepetitions(CommandSourceStack source, Holder<WorldClock> clock, Holder<Timeline> timeline)
queryTimelineRepetitions(CommandSourceStack source, Holder<WorldClock> clock, Holder<Timeline> timeline)
method_1_938(class_2168 arg0, class_6880<class_1_94> arg1, class_6880<class_12329> arg2)
queryDayCountOnTimeline(ServerCommandSource source, RegistryEntry<WorldClockKey> clock, RegistryEntry<Timeline> timeline)
private static int
setTotalTicks(CommandSourceStack source, Holder<WorldClock> clock, int totalTicks)
setTotalTicks(CommandSourceStack source, Holder<WorldClock> clock, int totalTicks)
method_1_943(class_2168 arg0, class_6880<class_1_94> arg1, int arg2)
setTime(ServerCommandSource source, RegistryEntry<WorldClockKey> clock, int ticks)
private static int
addTime(CommandSourceStack source, Holder<WorldClock> clock, int time)
addTime(CommandSourceStack source, Holder<WorldClock> clock, int time)
method_1_910(class_2168 arg0, class_6880<class_1_94> arg1, int arg2)
addTime(ServerCommandSource source, RegistryEntry<WorldClockKey> clock, int ticks)
private static int
setTimeToTimeMarker(CommandSourceStack source, Holder<WorldClock> clock, ResourceKey<ClockTimeMarker> timeMarkerId)
setTimeToTimeMarker(CommandSourceStack source, Holder<WorldClock> clock, ResourceKey<ClockTimeMarker> timeMarkerId)
method_1_942(class_2168 arg0, class_6880<class_1_94> arg1, class_5321<class_1_105> arg2)
setToTimeMarker(ServerCommandSource source, RegistryEntry<WorldClockKey> clock, RegistryKey<TimeMarker> marker)
private static int
setPaused(CommandSourceStack source, Holder<WorldClock> clock, boolean paused)
setPaused(CommandSourceStack source, Holder<WorldClock> clock, boolean paused)
method_1_941(class_2168 arg0, class_6880<class_1_94> arg1, boolean arg2)
setClockPaused(ServerCommandSource source, RegistryEntry<WorldClockKey> clock, boolean paused)
private static int
setRate(CommandSourceStack source, Holder<WorldClock> clock, float rate)
setRate(CommandSourceStack source, Holder<WorldClock> clock, float rate)
method_1_2942(class_2168 arg0, class_6880<class_1_94> arg1, float arg2)
setClockRate(ServerCommandSource source, RegistryEntry<WorldClockKey> clock, float rate)
private static int
wrapTime(long ticks)
wrapTime(long ticks)
method_1_946(long arg0)
coerceTicksToInt(long ticks)
private static RegistryEntry<WorldClockKey>
getDefaultClock(CommandSourceStack source)
getDefaultClock(CommandSourceStack source)
method_1_911(class_2168 arg0)
getDefaultClock(ServerCommandSource source)