Interface Ticks.Factory

  • Enclosing interface:
    Ticks

    public static interface Ticks.Factory
    Produces Ticks objects.
    • Method Detail

      • of

        Ticks of​(long ticks)
        Parameters:
        ticks - The number of ticks
        Returns:
        A Ticks object that represents the number of ticks.
        See Also:
        Ticks.of(long)
      • ofWallClockTime

        Ticks ofWallClockTime​(Engine engine,
                              long time,
                              java.time.temporal.TemporalUnit temporalUnit)
        Parameters:
        engine - The Engine to calculate the number of ticks for
        time - The time
        temporalUnit - The TemporalUnit of time given in time.
        Returns:
        The Ticks that represents the number of ticks that would be expected to be run on the given engine in an ideal scenario.
        See Also:
        (long, TemporalUnit)
      • ofMinecraftSeconds

        Ticks ofMinecraftSeconds​(Engine engine,
                                 long time)
        Parameters:
        engine - The Engine to calculate the number of ticks for
        time - The number of minecraft seconds
        Returns:
        The Ticks that represents the number of ticks that would be expected to be run in an ideal scenario.
        See Also:
        Ticks.ofMinecraftSeconds(Engine, long)
      • ofMinecraftHours

        Ticks ofMinecraftHours​(Engine engine,
                               long time)
        Parameters:
        engine - The Engine to calculate the number of ticks for
        time - The number of minecraft hours
        Returns:
        The Ticks that represents the number of ticks that would be expected to be run in an ideal scenario.
        See Also:
        Ticks.ofMinecraftHours(Engine, long)