Package com.plotsquared.core.plot.flag
Class GlobalFlagContainer
java.lang.Object
com.plotsquared.core.plot.flag.FlagContainer
com.plotsquared.core.plot.flag.GlobalFlagContainer
-
Nested Class Summary
Nested classes/interfaces inherited from class com.plotsquared.core.plot.flag.FlagContainer
FlagContainer.PlotFlagUpdateHandler, FlagContainer.PlotFlagUpdateType
-
Method Summary
Modifier and TypeMethodDescriptionQuery all levels of flag containers for a flag.Class<?>
getFlagClassFromString
(String name) PlotFlag<?,
?> getFlagErased
(Class<?> flagClass) Has the same functionality asFlagContainer.getFlag(Class)
, but with wildcard generic types.PlotFlag<?,
?> getFlagFromString
(String name) static GlobalFlagContainer
static void
setup()
Methods inherited from class com.plotsquared.core.plot.flag.FlagContainer
addAll, addAll, addFlag, addUnknownFlag, canEqual, castUnsafe, clearLocal, createCleanupHook, equals, getFlagMap, getHighestClassContainer, getInternalPlotFlagMap, getParentContainer, getRecognizedPlotFlags, hashCode, queryLocal, removeFlag, setParentContainer, subscribe
-
Method Details
-
setup
-
getInstance
-
getFlagErased
Description copied from class:FlagContainer
Has the same functionality asFlagContainer.getFlag(Class)
, but with wildcard generic types.- Overrides:
getFlagErased
in classFlagContainer
- Parameters:
flagClass
- ThePlotFlag
class.- Returns:
- the plot flag
-
getFlag
Description copied from class:FlagContainer
Query all levels of flag containers for a flag. This guarantees that a flag instance is returned, as long as it is registered in theglobal flag container
.- Overrides:
getFlag
in classFlagContainer
- Type Parameters:
V
- Flag value typeT
- Flag type- Parameters:
flagClass
- Flag class to query for- Returns:
- Flag instance
-
getFlagClassFromString
-
getFlagFromString
-