Uses of Class
com.plotsquared.core.plot.flag.PlotFlag
Packages that use PlotFlag
Package
Description
-
Uses of PlotFlag in com.plotsquared.core.configuration.caption
Methods in com.plotsquared.core.configuration.caption with parameters of type PlotFlag -
Uses of PlotFlag in com.plotsquared.core.database
Methods in com.plotsquared.core.database with parameters of type PlotFlagModifier and TypeMethodDescriptionvoid
AbstractDB.removeFlag
(Plot plot, PlotFlag<?, ?> flag) Remove a plot flag.static void
DBFunc.removeFlag
(Plot plot, PlotFlag<?, ?> flag) void
SQLManager.removeFlag
(Plot plot, PlotFlag<?, ?> flag) void
Sets plot flag.static void
void
-
Uses of PlotFlag in com.plotsquared.core.events
Methods in com.plotsquared.core.events that return PlotFlagConstructors in com.plotsquared.core.events with parameters of type PlotFlagModifierConstructorDescriptionPlotFlagAddEvent
(PlotFlag<?, ?> flag, Plot plot) PlotFlagAddEvent: Called when a Flag is added to a plot.protected
PlotFlagEvent
(Plot plot, PlotFlag<?, ?> flag) PlotFlagRemoveEvent
(PlotFlag<?, ?> flag, Plot plot) PlotFlagRemoveEvent: Called when a flag is removed from a plot -
Uses of PlotFlag in com.plotsquared.core.plot
Methods in com.plotsquared.core.plot with type parameters of type PlotFlagModifier and TypeMethodDescriptionGet the value associated with the specified flag.<T,
V extends PlotFlag<T, ?>>
TPlotArea.getFlag
(V flag) Get the value associated with the specified flag.<T,
V extends PlotFlag<T, ?>>
TPlotArea.getRoadFlag
(V flag) Get the value associated with the specified road flag.Methods in com.plotsquared.core.plot that return types with arguments of type PlotFlagModifier and TypeMethodDescriptionCollection<PlotFlag<?,
?>> Plot.getApplicableFlags
(boolean ignorePluginFlags) Get flags associated with the plot and the plot area that contains it.Collection<PlotFlag<?,
?>> Plot.getApplicableFlags
(boolean plotOnly, boolean ignorePluginFlags) Get flags associated with the plot.Plot.getFlags()
Get an immutable view of all the flags associated with the plot.Methods in com.plotsquared.core.plot with parameters of type PlotFlagModifier and TypeMethodDescriptionboolean
Plot.removeFlag
(@NonNull PlotFlag<?, ?> flag) Remove a flag from this plot<V> boolean
Sets a flag for the plot and stores it in the database.Method parameters in com.plotsquared.core.plot with type arguments of type PlotFlagModifier and TypeMethodDescription<T> @NonNull T
Get the value associated with the specified flag.<T> T
Get the value associated with the specified flag.<T> T
PlotArea.getRoadFlag
(Class<? extends PlotFlag<T, ?>> flagClass) Get the value associated with the specified road flag.boolean
Plot.removeFlag
(@NonNull Class<? extends PlotFlag<?, ?>> flag) Remove a flag from this plotConstructor parameters in com.plotsquared.core.plot with type arguments of type PlotFlagModifierConstructorDescriptionPlot
(@NonNull PlotId id, UUID owner, HashSet<UUID> trusted, HashSet<UUID> members, HashSet<UUID> denied, String alias, BlockLoc position, Collection<PlotFlag<?, ?>> flags, PlotArea area, boolean[] merged, long timestamp, int temp) Constructor for a saved plots (Used by the database manager when plots are fetched) -
Uses of PlotFlag in com.plotsquared.core.plot.flag
Classes in com.plotsquared.core.plot.flag with type parameters of type PlotFlagModifier and TypeClassDescriptionclass
A plot flag is any property that can be assigned to a plot, that will alter its functionality in some way.Methods in com.plotsquared.core.plot.flag with type parameters of type PlotFlagModifier and TypeMethodDescription<V,
T extends PlotFlag<V, ?>>
voidFlagContainer.addFlag
(T flag) Add a flag to the containerstatic <V,
T extends PlotFlag<V, ?>>
TFlagContainer.castUnsafe
(PlotFlag<?, ?> flag) Cast a plot flag with wildcard parameters into a parametrized PlotFlag.<V,
T extends PlotFlag<V, ?>>
TQuery all levels of flag containers for a flag.PlotFlag.getFlagName
(Class<F> flagClass) Return the name of the flag.FlagContainer.queryLocal
(Class<?> flagClass) Check for flag existence in this flag container instance.<V,
T extends PlotFlag<V, ?>>
VFlagContainer.removeFlag
(T flag) Remove a flag from the containerMethods in com.plotsquared.core.plot.flag that return PlotFlagModifier and TypeMethodDescriptionPlotFlag<?,
?> FlagParseException.getFlag()
Returns the class that threw the exceptionPlotFlag<?,
?> FlagContainer.getFlagErased
(Class<?> flagClass) Has the same functionality asFlagContainer.getFlag(Class)
, but with wildcard generic types.PlotFlag<?,
?> GlobalFlagContainer.getFlagErased
(Class<?> flagClass) PlotFlag<?,
?> GlobalFlagContainer.getFlagFromString
(String name) Methods in com.plotsquared.core.plot.flag that return types with arguments of type PlotFlagModifier and TypeMethodDescriptionFlagContainer.getFlagMap()
Get an immutable view of the underlying flag mapFlagContainer.getInternalPlotFlagMap()
Collection<PlotFlag<?,
?>> FlagContainer.getRecognizedPlotFlags()
Get a collection of all recognized plot flags.Methods in com.plotsquared.core.plot.flag with parameters of type PlotFlagModifier and TypeMethodDescriptionstatic <V,
T extends PlotFlag<V, ?>>
TFlagContainer.castUnsafe
(PlotFlag<?, ?> flag) Cast a plot flag with wildcard parameters into a parametrized PlotFlag.void
FlagContainer.PlotFlagUpdateHandler.handle
(PlotFlag<?, ?> plotFlag, FlagContainer.PlotFlagUpdateType type) Act on the flag update eventMethod parameters in com.plotsquared.core.plot.flag with type arguments of type PlotFlagModifier and TypeMethodDescriptionvoid
FlagContainer.addAll
(Collection<PlotFlag<?, ?>> flags) Add all flags to the containerConstructors in com.plotsquared.core.plot.flag with parameters of type PlotFlagModifierConstructorDescriptionFlagParseException
(PlotFlag<?, ?> flag, String value, Caption errorMessage, net.kyori.adventure.text.minimessage.Template... args) Construct a new flag parse exception to indicate that an attempt to parse a plot flag was unsuccessful. -
Uses of PlotFlag in com.plotsquared.core.plot.flag.implementations
Subclasses of PlotFlag in com.plotsquared.core.plot.flag.implementationsModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
-
Uses of PlotFlag in com.plotsquared.core.plot.flag.types
Classes in com.plotsquared.core.plot.flag.types with type parameters of type PlotFlagModifier and TypeClassDescriptionclass
BooleanFlag<F extends PlotFlag<Boolean,
F>> class
class
NumberFlag<N extends Number & Comparable<N>,
F extends PlotFlag<N, F>> class
TimedFlag<T,
F extends PlotFlag<TimedFlag.Timed<T>, F>> Subclasses of PlotFlag in com.plotsquared.core.plot.flag.typesModifier and TypeClassDescriptionclass
BlockTypeListFlag<F extends ListFlag<BlockTypeWrapper,
F>> class
BooleanFlag<F extends PlotFlag<Boolean,
F>> class
DoubleFlag<F extends NumberFlag<Double,
F>> class
IntegerFlag<F extends NumberFlag<Integer,
F>> class
class
LongFlag<F extends NumberFlag<Long,
F>> class
NonNegativeIntegerFlag<F extends IntegerFlag<F>>
class
NumberFlag<N extends Number & Comparable<N>,
F extends PlotFlag<N, F>> class
StringFlag<F extends StringFlag<F>>
Plot flag representing a string value.class
TimedFlag<T,
F extends PlotFlag<TimedFlag.Timed<T>, F>> -
Uses of PlotFlag in com.plotsquared.core.plot.world
Constructor parameters in com.plotsquared.core.plot.world with type arguments of type PlotFlag -
Uses of PlotFlag in com.plotsquared.core.util
Methods in com.plotsquared.core.util with parameters of type PlotFlagModifier and TypeMethodDescriptionEventDispatcher.callFlagAdd
(PlotFlag<?, ?> flag, Plot plot) EventDispatcher.callFlagRemove
(PlotFlag<?, ?> flag, Plot plot) static boolean
EntityUtil.checkEntity
(Plot plot, PlotFlag<Integer, ?>... flags) Method parameters in com.plotsquared.core.util with type arguments of type PlotFlagModifier and TypeMethodDescriptionstatic <T> boolean
PlotFlagUtil.isAreaRoadFlagsAndFlagEquals
(PlotArea area, Class<? extends PlotFlag<T, ?>> flagClass, T value) Check if the value of aPlotFlag
matches the given value. -
Uses of PlotFlag in com.plotsquared.core.util.placeholders
Constructors in com.plotsquared.core.util.placeholders with parameters of type PlotFlag