|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.event.Event org.bukkit.event.player.PlayerEvent org.bukkit.event.player.PlayerMoveEvent org.bukkit.event.player.PlayerTeleportEvent org.bukkit.event.player.PlayerPortalEvent
public class PlayerPortalEvent
Called when a player is about to teleport because it is in contact with a portal
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.bukkit.event.player.PlayerTeleportEvent |
---|
PlayerTeleportEvent.TeleportCause |
Nested classes/interfaces inherited from class org.bukkit.event.Event |
---|
Event.Result |
Field Summary | |
---|---|
protected TravelAgent |
travelAgent
|
protected boolean |
useTravelAgent
|
Fields inherited from class org.bukkit.event.player.PlayerEvent |
---|
player |
Constructor Summary | |
---|---|
PlayerPortalEvent(Player player,
Location from,
Location to,
TravelAgent pta)
|
|
PlayerPortalEvent(Player player,
Location from,
Location to,
TravelAgent pta,
PlayerTeleportEvent.TeleportCause cause)
|
Method Summary | |
---|---|
static HandlerList |
getHandlerList()
|
HandlerList |
getHandlers()
|
TravelAgent |
getPortalTravelAgent()
|
void |
setPortalTravelAgent(TravelAgent travelAgent)
|
boolean |
useTravelAgent()
|
void |
useTravelAgent(boolean useTravelAgent)
|
Methods inherited from class org.bukkit.event.player.PlayerTeleportEvent |
---|
getCause |
Methods inherited from class org.bukkit.event.player.PlayerMoveEvent |
---|
getFrom, getTo, isCancelled, setCancelled, setFrom, setTo |
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 |
Field Detail |
---|
protected boolean useTravelAgent
protected TravelAgent travelAgent
Constructor Detail |
---|
public PlayerPortalEvent(Player player, Location from, Location to, TravelAgent pta)
public PlayerPortalEvent(Player player, Location from, Location to, TravelAgent pta, PlayerTeleportEvent.TeleportCause cause)
Method Detail |
---|
public void useTravelAgent(boolean useTravelAgent)
public boolean useTravelAgent()
public TravelAgent getPortalTravelAgent()
public void setPortalTravelAgent(TravelAgent travelAgent)
public HandlerList getHandlers()
getHandlers
in class PlayerTeleportEvent
public static HandlerList getHandlerList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |