Cancellablepublic class LightningStrikeEvent extends WeatherEvent implements Cancellable
| Modifier and Type | Class | Description | 
|---|---|---|
static class  | 
LightningStrikeEvent.Cause | 
Event.Resultworld| Constructor | Description | 
|---|---|
LightningStrikeEvent(World world,
                    LightningStrike bolt) | 
 Deprecated.  
 | 
LightningStrikeEvent(World world,
                    LightningStrike bolt,
                    LightningStrikeEvent.Cause cause) | 
| Modifier and Type | Method | Description | 
|---|---|---|
LightningStrikeEvent.Cause | 
getCause() | 
 Gets the cause of this lightning strike. 
 | 
static HandlerList | 
getHandlerList() | 
|
HandlerList | 
getHandlers() | 
|
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. 
 | 
getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWorld@Deprecated public LightningStrikeEvent(@NotNull World world, @NotNull LightningStrike bolt)
public LightningStrikeEvent(@NotNull
                            World world,
                            @NotNull
                            LightningStrike bolt,
                            @NotNull
                            LightningStrikeEvent.Cause cause)
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this event@NotNull public LightningStrike getLightning()
@NotNull public LightningStrikeEvent.Cause getCause()
@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2019. All rights reserved.