Uses of Class
com.plotsquared.core.plot.flag.PlotFlag
Package
Description
-
Uses of PlotFlag in com.plotsquared.core.database
Modifier 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
ModifierConstructorDescriptionPlotFlagAddEvent
(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
Modifier 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.Modifier 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.Modifier 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.Modifier 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 plotModifierConstructorDescriptionPlot
(@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
Modifier and TypeClassDescriptionclass
A plot flag is any property that can be assigned to a plot, that will alter its functionality in some way.Modifier 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 containerModifier 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) Modifier 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.Modifier 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 eventModifier and TypeMethodDescriptionvoid
FlagContainer.addAll
(Collection<PlotFlag<?, ?>> flags) Add all flags to the containerModifierConstructorDescriptionFlagParseException
(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
Modifier 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
Modifier 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>> Modifier 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
-
Uses of PlotFlag in com.plotsquared.core.util
Modifier and TypeMethodDescriptionEventDispatcher.callFlagAdd
(PlotFlag<?, ?> flag, Plot plot) EventDispatcher.callFlagRemove
(PlotFlag<?, ?> flag, Plot plot) static boolean
EntityUtil.checkEntity
(Plot plot, PlotFlag<Integer, ?>... flags) Modifier 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