Package cn.nukkit.event.level
Class WeatherChangeEvent
java.lang.Object
cn.nukkit.event.Event
cn.nukkit.event.level.WeatherEvent
cn.nukkit.event.level.WeatherChangeEvent
- All Implemented Interfaces:
Cancellable
- Author:
- funcraft (Nukkit Project)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
boolean
Gets the state of weather that the world is being set toMethods inherited from class cn.nukkit.event.level.WeatherEvent
getLevel
Methods inherited from class cn.nukkit.event.Event
getEventName, isCancelled, setCancelled, setCancelled
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cn.nukkit.event.Cancellable
isCancelled, setCancelled, setCancelled
-
Constructor Details
-
WeatherChangeEvent
-
-
Method Details
-
getHandlers
-
toWeatherState
public boolean toWeatherState()Gets the state of weather that the world is being set to- Returns:
- true if the weather is being set to raining, false otherwise
-