Class LimitOperatorField

All Implemented Interfaces:
SelectionField<Integer>

public final class LimitOperatorField extends OperatorField<Integer>
  • Field Details

  • 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:
      parseFieldValue in interface SelectionField<Integer>
      Specified by:
      parseFieldValue in class OperatorField<Integer>
      Parameters:
      value - the string representation of the value to be parsed
      context -
      Returns:
      the parsed value of the field's type
      Throws:
      studio.mevera.imperat.exception.CommandException - if the parsing fails
    • operate

      public void operate(Integer value, List<org.bukkit.entity.Entity> entities)
      Performs an operation on the specified value and a list of entities.
      Specified by:
      operate in class OperatorField<Integer>
      Parameters:
      value - the value to be operated on
      entities - the list of entities to be processed