Package net.runelite.client.callback
Interface RenderCallback
-
- All Known Subinterfaces:
Hooks.RenderableDrawListener
public interface RenderCallback
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanaddEntity(Renderable renderable, boolean ui)Tests if an entity should be added to the scene.default booleandrawObject(Scene scene, TileObject object)Test if aTileObjectshould be drawn.default booleandrawTile(Scene scene, Tile tile)Test if a tile should be drawn.
-
-
-
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 entityui- 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 aTileObjectshould 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:
-
-