public class GreetingFlag extends Handler
| Modifier and Type | Class and Description |
|---|---|
static class |
GreetingFlag.Factory |
| Modifier and Type | Field and Description |
|---|---|
static GreetingFlag.Factory |
FACTORY |
| Constructor and Description |
|---|
GreetingFlag(Session session) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getInvincibility, getSession, initialize, testMoveTo, tickpublic static final GreetingFlag.Factory FACTORY
public GreetingFlag(Session session)
public 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