java.lang.Object
com.plotsquared.core.plot.flag.PlotFlag<Boolean,F>
com.plotsquared.core.plot.flag.types.BooleanFlag<F>
- Direct Known Subclasses:
AnimalAttackFlag
,AnimalInteractFlag
,BeaconEffectsFlag
,BlockBurnFlag
,BlockIgnitionFlag
,ChatFlag
,CopperOxideFlag
,CoralDryFlag
,CropGrowFlag
,DenyExitFlag
,DenyPortalsFlag
,DenyPortalTravelFlag
,DeviceInteractFlag
,DisablePhysicsFlag
,DropProtectionFlag
,EntityChangeBlockFlag
,ExplosionFlag
,ForcefieldFlag
,GrassGrowFlag
,HangingBreakFlag
,HangingPlaceFlag
,HideInfoFlag
,HostileAttackFlag
,HostileInteractFlag
,IceFormFlag
,IceMeltFlag
,InstabreakFlag
,InvincibleFlag
,ItemDropFlag
,KeepInventoryFlag
,KelpGrowFlag
,LeafDecayFlag
,LecternReadBookFlag
,MiscBreakFlag
,MiscInteractFlag
,MiscPlaceFlag
,MobBreakFlag
,MobPlaceFlag
,MycelGrowFlag
,NotifyEnterFlag
,NotifyLeaveFlag
,NoWorldeditFlag
,PlayerInteractFlag
,PreventCreativeCopyFlag
,ProjectilesFlag
,PveFlag
,PvpFlag
,RedstoneFlag
,ServerPlotFlag
,SnowFormFlag
,SnowMeltFlag
,SoilDryFlag
,TamedAttackFlag
,TamedInteractFlag
,UntrustedVisitFlag
,VehicleBreakFlag
,VehiclePlaceFlag
,VehicleUseFlag
,VillagerInteractFlag
,VineGrowFlag
-
Constructor Summary
ModifierConstructorDescriptionprotected
BooleanFlag
(boolean value, Caption description) Construct a new flag instance.protected
BooleanFlag
(Caption description) Construct a new boolean flag, withfalse
as the default value. -
Method Summary
Modifier and TypeMethodDescriptionAn example of a string that would parse into a valid flag value.Get the tab completable values associated with the flag type, or an empty collection if tab completion isn't supported.Merge this flag's value with another value and return an instance holding the merged value.Parse a string into a flag, and throw an exception in the case that the string does not represent a valid flag value.toString()
Returns a string representation of the flag instance, that when passed throughPlotFlag.parse(String)
will result in an equivalent instance of the flag.Methods inherited from class com.plotsquared.core.plot.flag.PlotFlag
canEqual, createFlagInstance, equals, flagOf, getFlagCategory, getFlagDescription, getFlagName, getName, getValue, hashCode, isValuedPermission
-
Constructor Details
-
Method Details
-
parse
Description copied from class:PlotFlag
Parse a string into a flag, and throw an exception in the case that the string does not represent a valid flag value. This instance won't change its state, but instead an instance holding the parsed flag value will be returned. -
merge
Description copied from class:PlotFlag
Merge this flag's value with another value and return an instance holding the merged value. -
getExample
Description copied from class:PlotFlag
An example of a string that would parse into a valid flag value. -
toString
Description copied from class:PlotFlag
Returns a string representation of the flag instance, that when passed throughPlotFlag.parse(String)
will result in an equivalent instance of the flag. -
getTabCompletions
Description copied from class:PlotFlag
Get the tab completable values associated with the flag type, or an empty collection if tab completion isn't supported.
-