Class LiquidFlowFlag
java.lang.Object
com.plotsquared.core.plot.flag.PlotFlag<LiquidFlowFlag.FlowStatus,LiquidFlowFlag>
com.plotsquared.core.plot.flag.implementations.LiquidFlowFlag
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final LiquidFlowFlag
static final LiquidFlowFlag
static final LiquidFlowFlag
-
Method Summary
Modifier and TypeMethodDescriptionprotected LiquidFlowFlag
An 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
(@NonNull LiquidFlowFlag.FlowStatus newValue) 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, getFlagCategory, getFlagDescription, getFlagName, getName, getValue, hashCode, isValuedPermission
-
Field Details
-
LIQUID_FLOW_ENABLED
-
LIQUID_FLOW_DISABLED
-
LIQUID_FLOW_DEFAULT
-
-
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.- Specified by:
parse
in classPlotFlag<LiquidFlowFlag.FlowStatus,
LiquidFlowFlag> - Parameters:
input
- String to parse.- Returns:
- Parsed value, if valid.
-
merge
Description copied from class:PlotFlag
Merge this flag's value with another value and return an instance holding the merged value.- Specified by:
merge
in classPlotFlag<LiquidFlowFlag.FlowStatus,
LiquidFlowFlag> - Parameters:
newValue
- New flag value.- Returns:
- Flag containing parsed 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.- Specified by:
toString
in classPlotFlag<LiquidFlowFlag.FlowStatus,
LiquidFlowFlag> - Returns:
- String representation of the flag
-
getExample
Description copied from class:PlotFlag
An example of a string that would parse into a valid flag value.- Specified by:
getExample
in classPlotFlag<LiquidFlowFlag.FlowStatus,
LiquidFlowFlag> - Returns:
- An example flag value.
-
flagOf
- Specified by:
flagOf
in classPlotFlag<LiquidFlowFlag.FlowStatus,
LiquidFlowFlag>
-
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.- Overrides:
getTabCompletions
in classPlotFlag<LiquidFlowFlag.FlowStatus,
LiquidFlowFlag> - Returns:
- Collection containing tab completable flag values
-