Package net.minecraft.server.commands
Class TimeCommand
java.lang.Object
net.minecraft.server.commands.TimeCommand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
addTime
(CommandSourceStack source, int amount) private static int
getDayTime
(ServerLevel level) Returns the day time (time wrapped within a day)private static int
queryTime
(CommandSourceStack source, int time) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher) static int
setTime
(CommandSourceStack source, int time)
-
Constructor Details
-
TimeCommand
public TimeCommand()
-
-
Method Details
-
register
-
getDayTime
Returns the day time (time wrapped within a day) -
queryTime
-
setTime
-
addTime
-