Interface RenderCallback

    • Method Detail

      • addEntity

        default boolean addEntity​(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​(Scene scene,
                                 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​(Scene scene,
                                   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: