CommandAPI 9.3.0
An API for the command UI introduced in Minecraft 1.13
dev.jorel.commandapi.wrappers.Time Class Reference

A class that represents time suggestions for the TimeArgument. More...

Public Member Functions

String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 

Static Public Member Functions

static Time ticks (int ticks)
 Create a Time object with a given number of ticks. More...
 
static Time days (int days)
 Create a Time object with a given number of days. More...
 
static Time seconds (int seconds)
 Create a Time object with a given number of seconds. More...
 

Detailed Description

A class that represents time suggestions for the TimeArgument.

Member Function Documentation

◆ days()

static Time dev.jorel.commandapi.wrappers.Time.days ( int  days)
static

Create a Time object with a given number of days.

Parameters
daysthe number of days to use
Returns
a Time object representing days (d)

◆ seconds()

static Time dev.jorel.commandapi.wrappers.Time.seconds ( int  seconds)
static

Create a Time object with a given number of seconds.

Parameters
secondsthe number of seconds to use
Returns
a Time object representing seconds (s)

◆ ticks()

static Time dev.jorel.commandapi.wrappers.Time.ticks ( int  ticks)
static

Create a Time object with a given number of ticks.

Parameters
ticksthe number of ticks to use
Returns
a Time object representing ticks (t)

◆ toString()

String dev.jorel.commandapi.wrappers.Time.toString ( )
Returns
the Minecraft argument representation of this Time object