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

Public Member Functions

 PigZapEvent (final Pig pig, final LightningStrike bolt, final PigZombie pigzombie)
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
Pig getEntity ()
 
LightningStrike getLightning ()
 
PigZombie getPigZombie ()
 
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

Stores data for pigs being zapped

Definition at line 12 of file PigZapEvent.java.

Member Function Documentation

LightningStrike org.bukkit.event.entity.PigZapEvent.getLightning ( )

Gets the bolt which is striking the pig.

Returns
lightning entity

Definition at line 42 of file PigZapEvent.java.

42  {
43  return bolt;
44  }
PigZombie org.bukkit.event.entity.PigZapEvent.getPigZombie ( )

Gets the zombie pig that will replace the pig, provided the event is not cancelled first.

Returns
resulting entity

Definition at line 52 of file PigZapEvent.java.

52  {
53  return pigzombie;
54  }
boolean org.bukkit.event.entity.PigZapEvent.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 24 of file PigZapEvent.java.

24  {
25  return canceled;
26  }
void org.bukkit.event.entity.PigZapEvent.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 28 of file PigZapEvent.java.

28  {
29  canceled = cancel;
30  }

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