Search in sources :

Example 1 with RSItemLayer

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

the class RSRegionMixin method rl$addItemPile.

@Replace("addItemPile")
public void rl$addItemPile(int plane, int x, int y, int hash, Renderable var5, int var6, Renderable var7, Renderable var8) {
    rs$addItemPile(plane, x, y, hash, var5, var6, var7, var8);
    Tile tile = getTiles()[plane][x][y];
    if (tile != null) {
        RSItemLayer itemLayer = (RSItemLayer) tile.getItemLayer();
        if (itemLayer != null) {
            itemLayer.setPlane(plane);
        }
    }
}
Also used : RSItemLayer(net.runelite.rs.api.RSItemLayer) 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 RSItemLayer (net.runelite.rs.api.RSItemLayer)1