java.lang.Object
com.plotsquared.core.plot.flag.PlotFlag<Boolean,F>
com.plotsquared.core.plot.flag.types.BooleanFlag<F>
- Direct Known Subclasses:
AnimalAttackFlag,AnimalInteractFlag,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,PveFlag,PvpFlag,RedstoneFlag,ServerPlotFlag,SnowFormFlag,SnowMeltFlag,SoilDryFlag,TamedAttackFlag,TamedInteractFlag,UntrustedVisitFlag,VehicleBreakFlag,VehiclePlaceFlag,VehicleUseFlag,VillagerInteractFlag,VineGrowFlag
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBooleanFlag(boolean value, Caption description) Construct a new flag instance.protectedBooleanFlag(Caption description) Construct a new boolean flag, withfalseas 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
-
BooleanFlag
Construct a new flag instance.- Parameters:
value- Flag valuedescription- Flag description
-
BooleanFlag
Construct a new boolean flag, withfalseas the default value.- Parameters:
description- Flag description
-
-
Method Details
-
parse
Description copied from class:PlotFlagParse 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:PlotFlagMerge this flag's value with another value and return an instance holding the merged value. -
getExample
Description copied from class:PlotFlagAn example of a string that would parse into a valid flag value. -
toString
Description copied from class:PlotFlagReturns 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:PlotFlagGet the tab completable values associated with the flag type, or an empty collection if tab completion isn't supported.
-