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

Public Member Functions

 SlimeSplitEvent (final Slime slime, final int count)
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
Slime getEntity ()
 
int getCount ()
 
void setCount (int count)
 
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 Slime splits into smaller Slimes upon death

Definition at line 10 of file SlimeSplitEvent.java.

Member Function Documentation

int org.bukkit.event.entity.SlimeSplitEvent.getCount ( )

Gets the amount of smaller slimes to spawn

Returns
the amount of slimes to spawn

Definition at line 38 of file SlimeSplitEvent.java.

38  {
39  return count;
40  }
boolean org.bukkit.event.entity.SlimeSplitEvent.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 20 of file SlimeSplitEvent.java.

20  {
21  return cancel;
22  }
void org.bukkit.event.entity.SlimeSplitEvent.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 24 of file SlimeSplitEvent.java.

24  {
25  this.cancel = cancel;
26  }
void org.bukkit.event.entity.SlimeSplitEvent.setCount ( int  count)

Sets how many smaller slimes will spawn on the split

Parameters
countthe amount of slimes to spawn

Definition at line 47 of file SlimeSplitEvent.java.

47  {
48  this.count = count;
49  }

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