Class LimitOperatorField
java.lang.Object
studio.mevera.imperat.selector.field.AbstractField<V>
studio.mevera.imperat.selector.field.operators.OperatorField<Integer>
studio.mevera.imperat.selector.field.operators.LimitOperatorField
- All Implemented Interfaces:
SelectionField<Integer>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<SelectionField<?>>static final Set<OperatorField<?>>static final OperatorField<Integer>static final OperatorField<SortOption>Fields inherited from class studio.mevera.imperat.selector.field.AbstractField
name, suggestions, typeFields inherited from interface studio.mevera.imperat.selector.field.SelectionField
SEPARATOR, VALUE_EQUALS -
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms an operation on the specified value and a list of entities.parseFieldValue(String value, studio.mevera.imperat.context.CommandContext<BukkitCommandSource> context) Parses the given string representation of the value and converts it into the field's value type.Methods inherited from class studio.mevera.imperat.selector.field.AbstractField
getName, getSuggestions, getValueType
-
Field Details
-
SORT
-
LIMIT
-
ALL_OPERATORS
-
ALL
-
-
Method Details
-
parseFieldValue
public Integer parseFieldValue(String value, studio.mevera.imperat.context.CommandContext<BukkitCommandSource> context) throws studio.mevera.imperat.exception.CommandException Parses the given string representation of the value and converts it into the field's value type.- Specified by:
parseFieldValuein interfaceSelectionField<Integer>- Specified by:
parseFieldValuein classOperatorField<Integer>- Parameters:
value- the string representation of the value to be parsedcontext-- Returns:
- the parsed value of the field's type
- Throws:
studio.mevera.imperat.exception.CommandException- if the parsing fails
-
operate
Performs an operation on the specified value and a list of entities.- Specified by:
operatein classOperatorField<Integer>- Parameters:
value- the value to be operated onentities- the list of entities to be processed
-