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

    Constructors
    Constructor
    Description
    NewShortTimeEvent(long time)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    long
    The configurable time in between short time intervals.
    long
    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

    Methods inherited from class java.lang.Object

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

    • NewShortTimeEvent

      public NewShortTimeEvent(long time)
  • Method Details

    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.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.