Class TickCommand

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

public class TickCommand extends Object
  • Field Details

    • MAX_TICKRATE

      private static final float MAX_TICKRATE
      See Also:
    • DEFAULT_TICKRATE

      private static final String DEFAULT_TICKRATE
    • ERROR_TICK_STEP_NOT_FROZEN

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TICK_STEP_NOT_FROZEN
    • ERROR_STEP_STOP_NOT_STEPPING

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_STEP_STOP_NOT_STEPPING
    • ERROR_SPRINT_STOP_NOT_SPRINTING

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_SPRINT_STOP_NOT_SPRINTING
  • Constructor Details

    • TickCommand

      public TickCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher)
    • nanosToMilisString

      private static String nanosToMilisString(long nanos)
    • setTickingRate

      private static int setTickingRate(CommandSourceStack source, float rate)
    • tickQuery

      private static int tickQuery(CommandSourceStack source)
    • sprint

      private static int sprint(CommandSourceStack source, int time)
    • setFreeze

      private static int setFreeze(CommandSourceStack source, boolean freeze)
    • step

      private static int step(CommandSourceStack source, int advance) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • stopStepping

      private static int stopStepping(CommandSourceStack source) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • stopSprinting

      private static int stopSprinting(CommandSourceStack source) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException