Class Time

java.lang.Object
ch.njol.skript.util.Time
All Implemented Interfaces:
YggdrasilSerializable

public class Time extends Object implements YggdrasilSerializable
  • Constructor Details

    • Time

      public Time()
    • Time

      public Time(int time)
  • Method Details

    • getTicks

      public int getTicks()
      Returns:
      Ticks in Minecraft time (0 ticks == 6:00)
    • getTime

      public int getTime()
      Returns:
      Ticks in day time (0 ticks == 0:00)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public static String toString(int ticks)
    • parse

      public static @Nullable Time parse(String s)
      Parameters:
      s - The trim()med string to parse
      Returns:
      The parsed time of null if the input was invalid
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object