Class LocatableEntityQueryBuilder<T extends LocatableEntity,​Q extends LocatableEntityQueryBuilder<T,​Q,​R,​RQ>,​R extends LocatableEntityQueryResult<T>,​RQ extends LocatableEntityQueryRequest<T>>

    • Constructor Detail

      • LocatableEntityQueryBuilder

        public LocatableEntityQueryBuilder​(APIContext ctx)
    • Method Detail

      • id

        public Q id​(int... ids)
      • modelId

        public Q modelId​(int... modelIds)
      • distance

        public Q distance​(double maximum)
      • distance

        public Q distance​(double minimum,
                          double maximum)
      • distance

        public final Q distance​(Locatable other,
                                double maximum)
      • distance

        public final Q distance​(Locatable other,
                                double minimum,
                                double maximum)
      • reachable

        public Q reachable()
      • reachableFrom

        public Q reachableFrom​(Locatable locatable)
      • unreachable

        public Q unreachable()
      • unreachableFrom

        public Q unreachableFrom​(Locatable locatable)
      • located

        public final Q located​(Locatable... locatables)
        Checks if the entity is located on ONE of the given tiles.
        Parameters:
        locatables - the locatables
        Returns:
        this
      • notLocated

        public final Q notLocated​(Locatable... locatables)
        Checks if the entity is NOT located on ANY of the given tiles.
        Parameters:
        locatables - the locatables
        Returns:
        this
      • within

        public final Q within​(Area... areas)
        Checks if the entity is located in ONE of the given areas.
        Parameters:
        areas - the areas to check
        Returns:
        this
      • notWithin

        public final Q notWithin​(Area... areas)
        Checks if the entity is NOT located in ANY of the given areas.
        Parameters:
        areas - the areas to check
        Returns:
        this