Class EntryFlag
java.lang.Object
com.sk89q.worldguard.session.handler.Handler
com.sk89q.worldguard.session.handler.EntryFlag
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
onCrossBoundary
(LocalPlayer player, com.sk89q.worldedit.util.Location from, com.sk89q.worldedit.util.Location to, ApplicableRegionSet toSet, Set<ProtectedRegion> entered, Set<ProtectedRegion> exited, MoveType moveType) Called when a player has moved into a new location.Methods inherited from class com.sk89q.worldguard.session.handler.Handler
getInvincibility, getSession, initialize, testMoveTo, tick, uninitialize
-
Field Details
-
FACTORY
-
-
Constructor Details
-
EntryFlag
-
-
Method Details
-
onCrossBoundary
public boolean onCrossBoundary(LocalPlayer player, com.sk89q.worldedit.util.Location from, com.sk89q.worldedit.util.Location to, ApplicableRegionSet toSet, Set<ProtectedRegion> entered, Set<ProtectedRegion> exited, MoveType moveType) Description copied from class:Handler
Called when a player has moved into a new location.This 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).- Overrides:
onCrossBoundary
in classHandler
- Parameters:
player
- 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- Returns:
- Whether the movement should be allowed
-