Class Time

java.lang.Object
dev.jorel.commandapi.wrappers.Time

public class Time extends Object
A class that represents time suggestions for the TimeArgument
  • Method Details

    • ticks

      public static Time ticks(int ticks)
      Create a Time object with a given number of ticks
      Parameters:
      ticks - the number of ticks to use
      Returns:
      a Time object representing ticks (t)
    • days

      public static Time days(int days)
      Create a Time object with a given number of days
      Parameters:
      days - the number of days to use
      Returns:
      a Time object representing days (d)
    • seconds

      public static Time seconds(int seconds)
      Create a Time object with a given number of seconds
      Parameters:
      seconds - the number of seconds to use
      Returns:
      a Time object representing seconds (s)
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      the Minecraft argument representation of this Time object
    • hashCode

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

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