Interface AffectEntityEvent

    • Method Detail

      • entities

        List<Entity> entities()
        Gets the List of entities who will be affected after event resolution. This list can only be modified using filterEntities(Predicate).
        Returns:
        The list of entities that will be affected.
      • filterEntityLocations

        default void filterEntityLocations​(Predicate<ServerLocation> predicate)
        Filters out ServerLocation's from entities() to be affected by this event.

        Locations for which the predicate returns false will be removed from entities().

        Parameters:
        predicate - The predicate to use for filtering
      • filterEntities

        void filterEntities​(Predicate<Entity> predicate)
        Filters out Entity's from entities() to be affected by this event.

        Entities for which the predicate returns false will be removed from entities().

        Parameters:
        predicate - The predicate to use for filtering