public class EntityZapEvent extends EntityTransformEvent implements Cancellable
EntityTransformEvent.TransformReasonEvent.Resultentity| Constructor and Description |
|---|
EntityZapEvent(Entity entity,
LightningStrike bolt,
Entity replacementEntity) |
| Modifier and Type | Method and 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.
|
getTransformedEntities, getTransformedEntity, getTransformReasongetEntity, getEntityTypecallEvent, getEventName, isAsynchronouspublic EntityZapEvent(@NotNull
Entity entity,
@NotNull
LightningStrike bolt,
@NotNull
Entity replacementEntity)
public boolean isCancelled()
CancellableisCancelled in interface CancellableisCancelled in class EntityTransformEventpublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface CancellablesetCancelled in class EntityTransformEventcancel - true if you wish to cancel this event@NotNull public LightningStrike getBolt()
@NotNull public Entity getReplacementEntity()
@NotNull public HandlerList getHandlers()
getHandlers in class EntityTransformEvent@NotNull public static HandlerList getHandlerList()
Copyright © 2019. All rights reserved.