public class WeatherChangeEvent extends WeatherEvent implements Cancellable
| Constructor and Description |
|---|
WeatherChangeEvent(Level level,
boolean to) |
| Modifier and Type | Method and Description |
|---|---|
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
|
getLevelpublic 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.Copyright © 2017–2018 NukkitX. All rights reserved.