public class FarewellFlag extends Handler
| Modifier and Type | Class and Description |
|---|---|
static class |
FarewellFlag.Factory |
| Modifier and Type | Field and Description |
|---|---|
static FarewellFlag.Factory |
FACTORY |
| Constructor and Description |
|---|
FarewellFlag(Session session) |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(LocalPlayer player,
com.sk89q.worldedit.util.Location current,
ApplicableRegionSet set)
Called when the session is first being created or
/wg flushstates is used. |
boolean |
onCrossBoundary(LocalPlayer player,
com.sk89q.worldedit.util.Location from,
com.sk89q.worldedit.util.Location to,
ApplicableRegionSet toSet,
java.util.Set<ProtectedRegion> entered,
java.util.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, getSession, testMoveTo, tickpublic static final FarewellFlag.Factory FACTORY
public FarewellFlag(Session session)
public void initialize(LocalPlayer player, com.sk89q.worldedit.util.Location current, ApplicableRegionSet set)
Handler/wg flushstates is used.initialize in class Handlerplayer - The playercurrent - The player's current locationset - The regions for the current locationpublic boolean onCrossBoundary(LocalPlayer player, com.sk89q.worldedit.util.Location from, com.sk89q.worldedit.util.Location to, ApplicableRegionSet toSet, java.util.Set<ProtectedRegion> entered, java.util.Set<ProtectedRegion> exited, MoveType moveType)
HandlerThis is called only if the move test
(Session.testMoveTo(LocalPlayer, 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 move