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