Interface IObjectsAPI


  • public interface IObjectsAPI
    • Method Detail

      • getAll

        java.util.List<SceneObject> getAll()
        Gets all objects in the current scene.
        Returns:
        list of objects
      • getAll

        java.util.List<SceneObject> getAll​(java.util.function.Predicate<SceneObject> filter)
        Gets all objects matching the given filter.
        Parameters:
        filter - the filter
        Returns:
        list of objects
      • getAll

        java.util.List<SceneObject> getAll​(int range,
                                           java.util.function.Predicate<SceneObject> filter)
        Gets all objects within a certain range matching the given filter.
        Parameters:
        range - the radius, defaults to 26
        filter - the filter
        Returns:
        list of objects
      • getAt

        java.util.List<SceneObject> getAt​(Locatable locatable)
        Gets all objects at at the given location.
        Parameters:
        locatable - the location
        Returns:
        list of objects
      • getAt

        java.util.List<SceneObject> getAt​(Locatable locatable,
                                          java.util.function.Predicate<SceneObject> filter)
        Gets all objects at the given location matching the given filter.
        Parameters:
        locatable - the location
        filter - the filter
        Returns:
        list of objects
      • getAt

        java.util.List<SceneObject> getAt​(Locatable locatable,
                                          int mask)
        Gets all objects at at the given location.
        Parameters:
        locatable - the location
        mask - the type flags or -1
        Returns:
        list of objects
      • getAt

        java.util.List<SceneObject> getAt​(Locatable locatable,
                                          int mask,
                                          java.util.function.Predicate<SceneObject> filter)
        Gets all objects at the given location matching the given filter.
        Parameters:
        locatable - the location
        mask - the type flags or -1
        filter - the filter
        Returns:
        list of objects
      • getTopAt

        SceneObject getTopAt​(Locatable locatable)
        Gets the top object at the given location.
        Parameters:
        locatable - the location
        Returns:
        the top object or null
      • getTopAt

        SceneObject getTopAt​(Locatable locatable,
                             java.util.function.Predicate<SceneObject> filter)
        Gets the top object at the given location matching the given filter.
        Parameters:
        locatable - the location
        filter - the filter
        Returns:
        the top object or null