Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.entity.CreeperPowerEvent Class Reference
Inheritance diagram for org.bukkit.event.entity.CreeperPowerEvent:
org.bukkit.event.entity.EntityEvent org.bukkit.event.Cancellable org.bukkit.event.Event

Classes

enum  PowerCause
 

Public Member Functions

 CreeperPowerEvent (final Creeper creeper, final LightningStrike bolt, final PowerCause cause)
 
 CreeperPowerEvent (final Creeper creeper, final PowerCause cause)
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
Creeper getEntity ()
 
LightningStrike getLightning ()
 
PowerCause getCause ()
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.entity.EntityEvent
 EntityEvent (final Entity what)
 
Entity getEntity ()
 
EntityType getEntityType ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.entity.EntityEvent
Entity entity
 

Detailed Description

Called when a Creeper is struck by lightning.

If a Creeper Power event is cancelled, the Creeper will not be powered.

Definition at line 13 of file CreeperPowerEvent.java.

Member Function Documentation

PowerCause org.bukkit.event.entity.CreeperPowerEvent.getCause ( )

Gets the cause of the creeper being (un)powered.

Returns
A PowerCause value detailing the cause of change in power.

Definition at line 56 of file CreeperPowerEvent.java.

56  {
57  return cause;
58  }
LightningStrike org.bukkit.event.entity.CreeperPowerEvent.getLightning ( )

Gets the lightning bolt which is striking the Creeper.

Returns
The Entity for the lightning bolt which is striking the Creeper

Definition at line 47 of file CreeperPowerEvent.java.

47  {
48  return bolt;
49  }
boolean org.bukkit.event.entity.CreeperPowerEvent.isCancelled ( )

Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins

Returns
true if this event is cancelled

Implements org.bukkit.event.Cancellable.

Definition at line 29 of file CreeperPowerEvent.java.

29  {
30  return canceled;
31  }
void org.bukkit.event.entity.CreeperPowerEvent.setCancelled ( boolean  cancel)

Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.

Parameters
canceltrue if you wish to cancel this event

Implements org.bukkit.event.Cancellable.

Definition at line 33 of file CreeperPowerEvent.java.

33  {
34  canceled = cancel;
35  }

The documentation for this class was generated from the following file: