Tickrate handler - iLexiconn/LLibrary GitHub Wiki
Tick Speed Handler
What is it?
Ever wanted to make a mod that changes the rate at which the game runs, make it slow-motion? LLibrary has got you covered! LLibrary provides the capability for you to change the game tick rate with ease.
How to use it
Using the TickRateHandler is very simple, it can be done by calling TickRateHandler#setTickRate() For example, this would make the game 1/2 the default speed.
TickRateHandler.setTickRate(0.5F);
If using a multiplier just isn't for you, set the tick rate in milliseconds per tick. (The default tick rate is 50) This would create a 25 millisecond delay between ticks, making the game tick at twice normal speed.
TickRateHandler.setTickRate(25L);