public class CreeperPowerEvent extends EntityEvent implements Cancellable
If a Creeper Power event is cancelled, the Creeper will not be powered.
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
CreeperPowerEvent.PowerCause
An enum to specify the cause of the change in power
|
Event.Resultentity| コンストラクタと説明 |
|---|
CreeperPowerEvent(Creeper creeper,
CreeperPowerEvent.PowerCause cause) |
CreeperPowerEvent(Creeper creeper,
LightningStrike bolt,
CreeperPowerEvent.PowerCause cause) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
CreeperPowerEvent.PowerCause |
getCause()
Gets the cause of the creeper being (un)powered.
|
Creeper |
getEntity()
Returns the Entity involved in this event
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
LightningStrike |
getLightning()
Gets the lightning bolt which is striking the Creeper.
|
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
getEntityTypegetEventName, isAsynchronouspublic CreeperPowerEvent(Creeper creeper, LightningStrike bolt, CreeperPowerEvent.PowerCause cause)
public CreeperPowerEvent(Creeper creeper, CreeperPowerEvent.PowerCause cause)
public boolean isCancelled()
CancellableisCancelled インタフェース内 Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled インタフェース内 Cancellablecancel - true if you wish to cancel this eventpublic Creeper getEntity()
EntityEventgetEntity クラス内 EntityEventpublic LightningStrike getLightning()
public CreeperPowerEvent.PowerCause getCause()
public HandlerList getHandlers()
getHandlers クラス内 Eventpublic static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.