Class NewShortTimeEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.time.NewShortTimeEvent
public class NewShortTimeEvent
extends org.bukkit.event.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
long
The configurable time in between short time intervals.long
getTime()
To turn this into something you could display use the following: timeFormat = new SimpleDateFormat("MMMMM dd '@' HH:mm") timeFormat.format(event.getTime())Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
NewShortTimeEvent
public NewShortTimeEvent(long time)
-
-
Method Details
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getTime
public long getTime()To turn this into something you could display use the following: timeFormat = new SimpleDateFormat("MMMMM dd '@' HH:mm") timeFormat.format(event.getTime())- Returns:
- time
-
getShortTaskPeriod
public long getShortTaskPeriod()The configurable time in between short time intervals.- Returns:
- shorttime period.
-