Interface EntityCondition

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface EntityCondition
This interface represents a condition to be evaluated on an entity based on certain criteria. It is a functional interface and can be used as a lambda expression or method reference.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    test(BukkitCommandSource sender, org.bukkit.entity.Entity entity)
    Evaluates the given condition on an entity based on the source.
  • Method Details

    • test

      boolean test(BukkitCommandSource sender, org.bukkit.entity.Entity entity) throws studio.mevera.imperat.exception.CommandException
      Evaluates the given condition on an entity based on the source.
      Parameters:
      sender - the source initiating the test, typically a command sender
      entity - the entity to be evaluated against the condition
      Returns:
      true if the entity meets the condition based on the source, false otherwise
      Throws:
      studio.mevera.imperat.exception.CommandException - if there is an error during the evaluation
    • and

      default EntityCondition and(EntityCondition other)