public abstract class AbstractRegionSet extends Object implements ApplicableRegionSet
| Constructor and Description |
|---|
AbstractRegionSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allows(StateFlag flag)
Deprecated.
|
boolean |
allows(StateFlag flag,
LocalPlayer player)
Deprecated.
|
boolean |
canBuild(LocalPlayer player)
Deprecated.
|
boolean |
canConstruct(LocalPlayer player)
Deprecated.
|
<T extends Flag<V>,V> |
getFlag(T flag)
Deprecated.
|
<T extends Flag<V>,V> |
getFlag(T flag,
LocalPlayer groupPlayer)
Deprecated.
|
StateFlag.State |
queryState(RegionAssociable subject,
StateFlag... flags)
Get the (effective) value for a list of state flags.
|
boolean |
testState(RegionAssociable subject,
StateFlag... flags)
Test whether the (effective) value for a list of state flags equals
ALLOW. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRegions, isMemberOfAll, isOwnerOfAll, isVirtual, queryAllValues, queryValue, sizeforEach, iterator, spliterator@Deprecated public boolean canBuild(LocalPlayer player)
ApplicableRegionSetDefaultFlag.BUILD flag or membership
requirements permit the given player.canBuild in interface ApplicableRegionSetplayer - the player to check@Deprecated public boolean canConstruct(LocalPlayer player)
ApplicableRegionSetcanConstruct in interface ApplicableRegionSetplayer - the playerpublic boolean testState(@Nullable RegionAssociable subject, StateFlag... flags)
ApplicableRegionSetALLOW.
subject can be non-null to satisfy region group requirements,
otherwise it will be assumed that the caller that is not a member of any
regions. (Flags on a region can be changed so that they only apply
to certain users.) The subject argument is required if the
DefaultFlag.BUILD flag is in the list of flags.
testState in interface ApplicableRegionSetsubject - an optional subject, which would be used to determine the region groups that applyflags - a list of flags to checkALLOWApplicableRegionSet.queryState(RegionAssociable, StateFlag...)@Nullable public StateFlag.State queryState(@Nullable RegionAssociable subject, StateFlag... flags)
ApplicableRegionSetDENY overrides ALLOW,
and ALLOW overrides NONE. One flag may override another.
subject can be non-null to satisfy region group requirements,
otherwise it will be assumed that the caller that is not a member of any
regions. (Flags on a region can be changed so that they only apply
to certain users.) The subject argument is required if the
DefaultFlag.BUILD flag is in the list of flags.
queryState in interface ApplicableRegionSetsubject - an optional subject, which would be used to determine the region groups that applyflags - a list of flags to check@Deprecated public boolean allows(StateFlag flag)
ApplicableRegionSetallows in interface ApplicableRegionSetflag - flag to check@Deprecated public boolean allows(StateFlag flag, @Nullable LocalPlayer player)
ApplicableRegionSetallows in interface ApplicableRegionSetflag - flag to checkplayer - player (used by some flags)@Deprecated @Nullable public <T extends Flag<V>,V> V getFlag(T flag, @Nullable LocalPlayer groupPlayer)
ApplicableRegionSetApplicableRegionSet.allows(StateFlag, LocalPlayer) for that).getFlag in interface ApplicableRegionSetflag - flag to checkgroupPlayer - player to check RegionGroups against@Deprecated @Nullable public <T extends Flag<V>,V> V getFlag(T flag)
ApplicableRegionSetApplicableRegionSet.allows(StateFlag, LocalPlayer) for that).getFlag in interface ApplicableRegionSetflag - the flag to checkCopyright © 2015. All Rights Reserved.