Class TimeSkipEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.world.ClockTimeSkipEvent
org.bukkit.event.world.TimeSkipEvent
- All Implemented Interfaces:
Cancellable
Called when the time skips in a world.
If the event is cancelled the time will not change.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ClockTimeSkipEvent
ClockTimeSkipEvent.SkipReasonNested classes/interfaces inherited from class Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionTimeSkipEvent(World world, WorldClock clock, ClockTimeSkipEvent.SkipReason skipReason, long skipAmount) -
Method Summary
Methods inherited from class ClockTimeSkipEvent
getClock, getHandlerList, getHandlers, getSkipAmount, getSkipReason, isCancelled, setCancelled, setSkipAmountMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
TimeSkipEvent
@Internal public TimeSkipEvent(World world, WorldClock clock, ClockTimeSkipEvent.SkipReason skipReason, long skipAmount)
-
-
Method Details
-
getWorld
Returns the world that time is skipped in.- Returns:
- world that time is skipped in
-