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

Public Member Functions

 SheepDyeWoolEvent (final Sheep sheep, final DyeColor color)
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
Sheep getEntity ()
 
DyeColor getColor ()
 
void setColor (DyeColor color)
 
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 sheep's wool is dyed

Definition at line 11 of file SheepDyeWoolEvent.java.

Member Function Documentation

DyeColor org.bukkit.event.entity.SheepDyeWoolEvent.getColor ( )

Gets the DyeColor the sheep is being dyed

Returns
the DyeColor the sheep is being dyed

Definition at line 40 of file SheepDyeWoolEvent.java.

40  {
41  return color;
42  }
boolean org.bukkit.event.entity.SheepDyeWoolEvent.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 22 of file SheepDyeWoolEvent.java.

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

26  {
27  this.cancel = cancel;
28  }
void org.bukkit.event.entity.SheepDyeWoolEvent.setColor ( DyeColor  color)

Sets the DyeColor the sheep is being dyed

Parameters
colorthe DyeColor the sheep will be dyed

Definition at line 49 of file SheepDyeWoolEvent.java.

49  {
50  this.color = color;
51  }

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