|
||||||||||
| 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.PlayerLeashEntityEvent
public class PlayerLeashEntityEvent
Called immediately prior to a creature being leashed by a player.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.bukkit.event.Event |
|---|
Event.Result |
| Constructor Summary | |
|---|---|
PlayerLeashEntityEvent(Entity what,
Entity leashHolder,
Player leasher)
|
|
| Method Summary | |
|---|---|
Entity |
getEntity()
Returns the entity being leashed. |
static HandlerList |
getHandlerList()
|
HandlerList |
getHandlers()
|
Entity |
getLeashHolder()
Returns the entity that is holding the leash. |
Player |
getPlayer()
Returns the player involved in this event |
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.Event |
|---|
getEventName, isAsynchronous |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlayerLeashEntityEvent(Entity what,
Entity leashHolder,
Player leasher)
| Method Detail |
|---|
public Entity getLeashHolder()
public Entity getEntity()
public final Player getPlayer()
public HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
public boolean isCancelled()
Cancellable
isCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
Cancellable
setCancelled in interface Cancellablecancel - true if you wish to cancel this event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||