public class WeatherChangeEvent extends Object implements WeatherEvent, Cancellable
| Constructor and Description |
|---|
WeatherChangeEvent(Level level,
boolean to) |
| Modifier and Type | Method and Description |
|---|---|
Level |
getLevel() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
boolean |
toWeatherState()
Gets the state of weather that the world is being set to
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic WeatherChangeEvent(Level level, boolean to)
public boolean toWeatherState()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.public Level getLevel()
getLevel in interface LevelEventCopyright © 2017–2020 NukkitX. All rights reserved.