|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.CreeperPowerEvent
public class CreeperPowerEvent
Called when a Creeper is struck by lightning.
If a Creeper Power event is cancelled, the Creeper will not be powered.
| Nested Class Summary | |
|---|---|
static class |
CreeperPowerEvent.PowerCause
An enum to specify the cause of the change in power |
| Nested classes/interfaces inherited from class org.bukkit.event.Event |
|---|
Event.Result |
| Field Summary |
|---|
| Fields inherited from class org.bukkit.event.entity.EntityEvent |
|---|
entity |
| Constructor Summary | |
|---|---|
CreeperPowerEvent(Creeper creeper,
CreeperPowerEvent.PowerCause cause)
|
|
CreeperPowerEvent(Creeper creeper,
LightningStrike bolt,
CreeperPowerEvent.PowerCause cause)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.bukkit.event.entity.EntityEvent |
|---|
getEntityType |
| Methods inherited from class org.bukkit.event.Event |
|---|
getEventName, isAsynchronous |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CreeperPowerEvent(Creeper creeper,
LightningStrike bolt,
CreeperPowerEvent.PowerCause cause)
public CreeperPowerEvent(Creeper creeper,
CreeperPowerEvent.PowerCause cause)
| Method Detail |
|---|
public boolean isCancelled()
Cancellable
isCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
Cancellable
setCancelled in interface Cancellablecancel - true if you wish to cancel this eventpublic Creeper getEntity()
EntityEvent
getEntity in class EntityEventpublic LightningStrike getLightning()
public CreeperPowerEvent.PowerCause getCause()
public HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||