Class TimeCommand

java.lang.Object
net.minecraft.server.commands.TimeCommand

public class TimeCommand extends Object
  • Constructor Details

    • TimeCommand

      public TimeCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_139072_)
    • getDayTime

      private static int getDayTime(ServerLevel pLevel)
      Returns the day time (time wrapped within a day)
    • queryTime

      private static int queryTime(CommandSourceStack pSource, int pTime)
    • setTime

      public static int setTime(CommandSourceStack pSource, int pTime)
    • addTime

      public static int addTime(CommandSourceStack pSource, int pAmount)