public class EntryFlag extends Handler
| Modifier and Type | Method and Description |
|---|---|
boolean |
onCrossBoundary(org.bukkit.entity.Player player,
org.bukkit.Location from,
org.bukkit.Location to,
ApplicableRegionSet toSet,
Set<ProtectedRegion> entered,
Set<ProtectedRegion> exited,
MoveType moveType)
Called when a player has moved into a new location where either
there are fewer regions or more regions.
|
getInvincibility, getPlugin, getSession, initialize, testMoveTo, tickpublic EntryFlag(Session session)
public boolean onCrossBoundary(org.bukkit.entity.Player player,
org.bukkit.Location from,
org.bukkit.Location to,
ApplicableRegionSet toSet,
Set<ProtectedRegion> entered,
Set<ProtectedRegion> exited,
MoveType moveType)
HandlerThis is called only if the move test
(Session.testMoveTo(Player, Location, MoveType)) was successful.
If this method returns false, then no other handlers
will be run (for this move attempt).
onCrossBoundary in class Handlerplayer - The playerfrom - The previous, valid, locationto - The new location to testtoSet - The regions for the new locationentered - The list of regions that have been enteredexited - The list of regions that have been leftmoveType - The type of moveCopyright © 2015. All Rights Reserved.