public class ThunderChangeEvent extends Object implements WeatherEvent, Cancellable
| Constructor and Description |
|---|
ThunderChangeEvent(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 |
toThunderState()
Gets the state of thunder that the world is being set to
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic ThunderChangeEvent(Level level, boolean to)
public boolean toThunderState()
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.