Class TimeHelper

java.lang.Object
net.minecraft.util.TimeHelper

public class TimeHelper extends Object
A class holding utility methods related to time and durations.
Mappings:
Namespace Name
named net/minecraft/util/TimeHelper
intermediary net/minecraft/class_4802
official azh
  • Field Details

    • SECOND_IN_NANOS

      public static final long SECOND_IN_NANOS
      The equivalent of 1 second, in nanoseconds. Is 1000000000.
      Mappings:
      Namespace Name Mixin selector
      named SECOND_IN_NANOS Lnet/minecraft/util/TimeHelper;SECOND_IN_NANOS:J
      intermediary field_33868 Lnet/minecraft/class_4802;field_33868:J
      official a Lazh;a:J
    • MILLI_IN_NANOS

      public static final long MILLI_IN_NANOS
      The equivalent of 1 millisecond, in nanoseconds. Is 1000000.
      Mappings:
      Namespace Name Mixin selector
      named MILLI_IN_NANOS Lnet/minecraft/util/TimeHelper;MILLI_IN_NANOS:J
      intermediary field_33869 Lnet/minecraft/class_4802;field_33869:J
      official b Lazh;b:J
    • SECOND_IN_MILLIS

      public static final long SECOND_IN_MILLIS
      The equivalent of 1 second, in milliseconds. Is 1000.
      Mappings:
      Namespace Name Mixin selector
      named SECOND_IN_MILLIS Lnet/minecraft/util/TimeHelper;SECOND_IN_MILLIS:J
      intermediary field_46957 Lnet/minecraft/class_4802;field_46957:J
      official c Lazh;c:J
    • HOUR_IN_SECONDS

      public static final long HOUR_IN_SECONDS
      The equivalent of 1 hour, in seconds. Is 3600.
      Mappings:
      Namespace Name Mixin selector
      named HOUR_IN_SECONDS Lnet/minecraft/util/TimeHelper;HOUR_IN_SECONDS:J
      intermediary field_46958 Lnet/minecraft/class_4802;field_46958:J
      official d Lazh;d:J
    • MINUTE_IN_SECONDS

      public static final int MINUTE_IN_SECONDS
      The equivalent of 1 minute, in seconds. Is 60.
      Mappings:
      Namespace Name Mixin selector
      named MINUTE_IN_SECONDS Lnet/minecraft/util/TimeHelper;MINUTE_IN_SECONDS:I
      intermediary field_47726 Lnet/minecraft/class_4802;field_47726:I
      official e Lazh;e:I
  • Constructor Details

    • TimeHelper

      public TimeHelper()
  • Method Details

    • betweenSeconds

      public static UniformIntProvider betweenSeconds(int min, int max)
      Returns an int provider that provides a time in ticks, between min * 20 and max * 20 (both inclusive).
      Returns:
      an int provider that provides a time in ticks, between min * 20 and max * 20 (both inclusive)
      Mappings:
      Namespace Name Mixin selector
      named betweenSeconds Lnet/minecraft/util/TimeHelper;betweenSeconds(II)Lnet/minecraft/util/math/intprovider/UniformIntProvider;
      intermediary method_24505 Lnet/minecraft/class_4802;method_24505(II)Lnet/minecraft/class_6019;
      official a Lazh;a(II)Lbps;