Interface RenderCallback

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default boolean addEntity​(net.runelite.api.Renderable renderable, boolean ui)
      Tests if an entity should be added to the scene.
      default boolean drawObject​(net.runelite.api.Scene scene, net.runelite.api.TileObject object)
      Test if a TileObject should be drawn.
      default boolean drawTile​(net.runelite.api.Scene scene, net.runelite.api.Tile tile)
      Test if a tile should be drawn.
    • Method Detail

      • addEntity

        default boolean addEntity​(net.runelite.api.Renderable renderable,
                                  boolean ui)
        Tests if an entity should be added to the scene. This is called multiple times per frame from the client thread. Entities are temporary entities (players, npcs, projectiles, spotanims, etc). Preventing an entity from being added removes their clickbox and also allows other entities which would have been hidden to be added.
        Parameters:
        renderable - the entity
        ui - true if this test is for drawing the ui (hitbars etc)
        Returns:
      • drawTile

        default boolean drawTile​(net.runelite.api.Scene scene,
                                 net.runelite.api.Tile tile)
        Test if a tile should be drawn. This is called on scene upload, by the maploader thread.
        Parameters:
        scene -
        tile -
        Returns:
      • drawObject

        default boolean drawObject​(net.runelite.api.Scene scene,
                                   net.runelite.api.TileObject object)
        Test if a TileObject should be drawn. This is called on scene upload, by the maploader thread, as well as each frame by the client thread for dynamic objects (animated objects), as well as temporary entities (players, npcs, projectiles, spotanims, etc).
        Parameters:
        scene -
        object -
        Returns: