CancellablePigZapEventpublic class EntityZapEvent extends EntityEvent implements Cancellable
Event.Resultentity| Constructor | Description |
|---|---|
EntityZapEvent(Entity entity,
LightningStrike bolt,
Entity replacementEntity) |
| Modifier and Type | Method | Description |
|---|---|---|
LightningStrike |
getBolt() |
Gets the lightning bolt that is striking the entity.
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
Entity |
getReplacementEntity() |
Gets the entity that will replace the struck entity.
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel) |
Sets the cancellation state of this event.
|
getEntity, getEntityTypecallEvent, getEventName, isAsynchronouspublic EntityZapEvent(Entity entity, @Nonnull LightningStrike bolt, @Nonnull Entity replacementEntity)
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this event@Nonnull public LightningStrike getBolt()
@Nonnull public Entity getReplacementEntity()
public HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.