Package net.minecraft.util
Class TimeHelper
java.lang.Object
net.minecraft.util.TimeHelper
A class holding utility methods related to time and durations.
- Mappings:
 Namespace Name named net/minecraft/util/TimeHelperintermediary net/minecraft/class_4802official azp
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longThe equivalent of 1 hour, in seconds.static final longThe equivalent of 1 millisecond, in nanoseconds.static final intThe equivalent of 1 minute, in seconds.static final longThe equivalent of 1 second, in milliseconds.static final longThe equivalent of 1 second, in nanoseconds. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic UniformIntProviderbetweenSeconds(int min, int max) Returns an int provider that provides a time in ticks, betweenmin * 20andmax * 20(both inclusive). 
- 
Field Details
- 
SECOND_IN_NANOS
public static final long SECOND_IN_NANOSThe equivalent of 1 second, in nanoseconds. Is1000000000.- Mappings:
 Namespace Name Mixin selector named SECOND_IN_NANOSLnet/minecraft/util/TimeHelper;SECOND_IN_NANOS:Jintermediary field_33868Lnet/minecraft/class_4802;field_33868:Jofficial aLazp;a:J
 - 
MILLI_IN_NANOS
public static final long MILLI_IN_NANOSThe equivalent of 1 millisecond, in nanoseconds. Is1000000.- Mappings:
 Namespace Name Mixin selector named MILLI_IN_NANOSLnet/minecraft/util/TimeHelper;MILLI_IN_NANOS:Jintermediary field_33869Lnet/minecraft/class_4802;field_33869:Jofficial bLazp;b:J
 - 
SECOND_IN_MILLIS
public static final long SECOND_IN_MILLISThe equivalent of 1 second, in milliseconds. Is1000.- Mappings:
 Namespace Name Mixin selector named SECOND_IN_MILLISLnet/minecraft/util/TimeHelper;SECOND_IN_MILLIS:Jintermediary field_46957Lnet/minecraft/class_4802;field_46957:Jofficial cLazp;c:J
 - 
HOUR_IN_SECONDS
public static final long HOUR_IN_SECONDSThe equivalent of 1 hour, in seconds. Is3600.- Mappings:
 Namespace Name Mixin selector named HOUR_IN_SECONDSLnet/minecraft/util/TimeHelper;HOUR_IN_SECONDS:Jintermediary field_46958Lnet/minecraft/class_4802;field_46958:Jofficial dLazp;d:J
 - 
MINUTE_IN_SECONDS
public static final int MINUTE_IN_SECONDSThe equivalent of 1 minute, in seconds. Is60.- Mappings:
 Namespace Name Mixin selector named MINUTE_IN_SECONDSLnet/minecraft/util/TimeHelper;MINUTE_IN_SECONDS:Iintermediary field_47726Lnet/minecraft/class_4802;field_47726:Iofficial eLazp;e:I
 
 - 
 - 
Constructor Details
- 
TimeHelper
public TimeHelper() 
 - 
 - 
Method Details
- 
betweenSeconds
Returns an int provider that provides a time in ticks, betweenmin * 20andmax * 20(both inclusive).- Returns:
 - an int provider that provides a time in ticks, between 
min * 20andmax * 20(both inclusive) - Mappings:
 Namespace Name Mixin selector named betweenSecondsLnet/minecraft/util/TimeHelper;betweenSeconds(II)Lnet/minecraft/util/math/intprovider/UniformIntProvider;intermediary method_24505Lnet/minecraft/class_4802;method_24505(II)Lnet/minecraft/class_6019;official aLazp;a(II)Lbqc;
 
 -