Cancellable
public class LightningStrikeEvent extends WeatherEvent implements Cancellable
Modifier and Type | Class | Description |
---|---|---|
static class |
LightningStrikeEvent.Cause |
Event.Result
world
Constructor | Description |
---|---|
LightningStrikeEvent(@NotNull World world,
@NotNull LightningStrike bolt) |
Deprecated.
|
LightningStrikeEvent(@NotNull World world,
@NotNull LightningStrike bolt,
@NotNull LightningStrikeEvent.Cause cause) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull LightningStrikeEvent.Cause |
getCause() |
Gets the cause of this lightning strike.
|
static @NotNull HandlerList |
getHandlerList() |
|
@NotNull HandlerList |
getHandlers() |
|
@NotNull LightningStrike |
getLightning() |
Gets the bolt which is striking the earth.
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel) |
Sets the cancellation state of this event.
|
callEvent, getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWorld
@Deprecated public LightningStrikeEvent(@NotNull @NotNull World world, @NotNull @NotNull LightningStrike bolt)
public LightningStrikeEvent(@NotNull @NotNull World world, @NotNull @NotNull LightningStrike bolt, @NotNull @NotNull LightningStrikeEvent.Cause cause)
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this event@NotNull public @NotNull LightningStrike getLightning()
@NotNull public @NotNull LightningStrikeEvent.Cause getCause()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2020. All rights reserved.