Class TickCommand
java.lang.Object
net.minecraft.server.commands.TickCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringnanosToMilisString(long nanos) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher) private static intsetFreeze(CommandSourceStack source, boolean freeze) private static intsetTickingRate(CommandSourceStack source, float rate) private static intsprint(CommandSourceStack source, int time) private static intstep(CommandSourceStack source, int advance) private static intstopSprinting(CommandSourceStack source) private static intstopStepping(CommandSourceStack source) private static inttickQuery(CommandSourceStack source)
-
Field Details
-
MAX_TICKRATE
private static final float MAX_TICKRATE- See Also:
-
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
-
nanosToMilisString
-
setTickingRate
-
tickQuery
-
sprint
-
setFreeze
-
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
-