Class TimeHandler

java.lang.Object
com.pixelmonmod.pixelmon.TimeHandler

public class TimeHandler extends Object
A static utility class used for updating the time in all worlds to be inline with the system time
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Calculates the time using DATE_FORMAT and multiplies the hours and minutes out into seconds Adds 18,000 as this is midnight in Minecraft and therefore is aligning the time with midnight

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TimeHandler

      public TimeHandler()
  • Method Details

    • changeTime

      public static void changeTime()
      Calculates the time using DATE_FORMAT and multiplies the hours and minutes out into seconds Adds 18,000 as this is midnight in Minecraft and therefore is aligning the time with midnight