Search in sources :

Example 1 with RSGroundObject

use of net.runelite.rs.api.RSGroundObject in project runelite by runelite.

the class RSRegionMixin method rl$groundObjectSpawned.

@Replace("groundObjectSpawned")
public void rl$groundObjectSpawned(int plane, int x, int y, int hash, Renderable var5, int var6, int var7) {
    rs$groundObjectSpawned(plane, x, y, hash, var5, var6, var7);
    Tile tile = getTiles()[plane][x][y];
    if (tile != null) {
        RSGroundObject groundObject = (RSGroundObject) tile.getGroundObject();
        if (groundObject != null) {
            groundObject.setPlane(plane);
        }
    }
}
Also used : RSGroundObject(net.runelite.rs.api.RSGroundObject) Tile(net.runelite.api.Tile) Replace(net.runelite.api.mixins.Replace)

Aggregations

Tile (net.runelite.api.Tile)1 Replace (net.runelite.api.mixins.Replace)1 RSGroundObject (net.runelite.rs.api.RSGroundObject)1