Class InvincibilityFlag
java.lang.Object
com.sk89q.worldguard.session.handler.Handler
com.sk89q.worldguard.session.handler.FlagValueChangeHandler<StateFlag.State>
com.sk89q.worldguard.session.handler.InvincibilityFlag
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInvincibility(LocalPlayer player)Return whether the player should be invincible.protected booleanonAbsentValue(LocalPlayer player, com.sk89q.worldedit.util.Location from, com.sk89q.worldedit.util.Location to, ApplicableRegionSet toSet, StateFlag.State lastValue, MoveType moveType)protected voidonInitialValue(LocalPlayer player, ApplicableRegionSet set, StateFlag.State value)protected booleanonSetValue(LocalPlayer player, com.sk89q.worldedit.util.Location from, com.sk89q.worldedit.util.Location to, ApplicableRegionSet toSet, StateFlag.State currentValue, StateFlag.State lastValue, MoveType moveType)Methods inherited from class com.sk89q.worldguard.session.handler.FlagValueChangeHandler
initialize, onCrossBoundaryMethods inherited from class com.sk89q.worldguard.session.handler.Handler
getSession, getWrappedHandler, testMoveTo, tick
-
Field Details
-
FACTORY
-
-
Constructor Details
-
InvincibilityFlag
-
-
Method Details
-
onInitialValue
- Specified by:
onInitialValuein classFlagValueChangeHandler<StateFlag.State>
-
onSetValue
protected boolean onSetValue(LocalPlayer player, com.sk89q.worldedit.util.Location from, com.sk89q.worldedit.util.Location to, ApplicableRegionSet toSet, StateFlag.State currentValue, StateFlag.State lastValue, MoveType moveType)- Specified by:
onSetValuein classFlagValueChangeHandler<StateFlag.State>
-
onAbsentValue
protected boolean onAbsentValue(LocalPlayer player, com.sk89q.worldedit.util.Location from, com.sk89q.worldedit.util.Location to, ApplicableRegionSet toSet, StateFlag.State lastValue, MoveType moveType)- Specified by:
onAbsentValuein classFlagValueChangeHandler<StateFlag.State>
-
getInvincibility
Description copied from class:HandlerReturn whether the player should be invincible.StateFlag.State.DENYcan be returned to prevent invincibility even if another handler permits it.- Overrides:
getInvincibilityin classHandler- Parameters:
player- The player- Returns:
- Invincibility state
-