public class InvincibilityFlag extends FlagValueChangeHandler<StateFlag.State>
| Constructor and Description |
|---|
InvincibilityFlag(Session session) |
| Modifier and Type | Method and Description |
|---|---|
StateFlag.State |
getInvincibility(org.bukkit.entity.Player player)
Return whether the player should be invincible.
|
protected boolean |
onAbsentValue(org.bukkit.entity.Player player,
org.bukkit.Location from,
org.bukkit.Location to,
ApplicableRegionSet toSet,
StateFlag.State lastValue,
MoveType moveType) |
protected void |
onInitialValue(org.bukkit.entity.Player player,
ApplicableRegionSet set,
StateFlag.State value) |
protected boolean |
onSetValue(org.bukkit.entity.Player player,
org.bukkit.Location from,
org.bukkit.Location to,
ApplicableRegionSet toSet,
StateFlag.State currentValue,
StateFlag.State lastValue,
MoveType moveType) |
initialize, onCrossBoundarygetPlugin, getSession, testMoveTo, tickpublic InvincibilityFlag(Session session)
protected void onInitialValue(org.bukkit.entity.Player player,
ApplicableRegionSet set,
StateFlag.State value)
onInitialValue in class FlagValueChangeHandler<StateFlag.State>protected boolean onSetValue(org.bukkit.entity.Player player,
org.bukkit.Location from,
org.bukkit.Location to,
ApplicableRegionSet toSet,
StateFlag.State currentValue,
StateFlag.State lastValue,
MoveType moveType)
onSetValue in class FlagValueChangeHandler<StateFlag.State>protected boolean onAbsentValue(org.bukkit.entity.Player player,
org.bukkit.Location from,
org.bukkit.Location to,
ApplicableRegionSet toSet,
StateFlag.State lastValue,
MoveType moveType)
onAbsentValue in class FlagValueChangeHandler<StateFlag.State>@Nullable public StateFlag.State getInvincibility(org.bukkit.entity.Player player)
HandlerStateFlag.State.DENY can be returned to prevent invincibility
even if another handler permits it.
getInvincibility in class Handlerplayer - The playerCopyright © 2015. All Rights Reserved.