|
||||||||||
| 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.player.PlayerEvent
org.bukkit.event.player.PlayerMoveEvent
public class PlayerMoveEvent
Holds information for player movement events
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.bukkit.event.Event |
|---|
Event.Result |
| Field Summary |
|---|
| Fields inherited from class org.bukkit.event.player.PlayerEvent |
|---|
player |
| Constructor Summary | |
|---|---|
PlayerMoveEvent(Player player,
Location from,
Location to)
|
|
| Method Summary | |
|---|---|
Location |
getFrom()
Gets the location this player moved from |
static HandlerList |
getHandlerList()
|
HandlerList |
getHandlers()
|
Location |
getTo()
Gets the location this player moved to |
boolean |
isCancelled()
Gets the cancellation state of this event. |
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event. |
void |
setFrom(Location from)
Sets the location to mark as where the player moved from |
void |
setTo(Location to)
Sets the location that this player will move to |
| Methods inherited from class org.bukkit.event.player.PlayerEvent |
|---|
getPlayer |
| 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 PlayerMoveEvent(Player player,
Location from,
Location to)
| Method Detail |
|---|
public boolean isCancelled()
isCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
setCancelled in interface Cancellablecancel - true if you wish to cancel this eventpublic Location getFrom()
public void setFrom(Location from)
from - New location to mark as the players previous locationpublic Location getTo()
public void setTo(Location to)
to - New Location this player will move topublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||