Search in sources :

Example 6 with Replace

use of net.runelite.api.mixins.Replace in project runelite by runelite.

the class RSRegionMixin method rl$addBoundary.

@Replace("addBoundary")
public void rl$addBoundary(int plane, int x, int y, int hash, Renderable var5, Renderable var6, int var7, int var8, int var9, int var10) {
    rs$addBoundary(plane, x, y, hash, var5, var6, var7, var8, var9, var10);
    Tile tile = getTiles()[plane][x][y];
    if (tile != null) {
        RSWallObject wallObject = (RSWallObject) tile.getWallObject();
        if (wallObject != null) {
            wallObject.setPlane(plane);
        }
    }
}
Also used : Tile(net.runelite.api.Tile) RSWallObject(net.runelite.rs.api.RSWallObject) Replace(net.runelite.api.mixins.Replace)

Aggregations

Replace (net.runelite.api.mixins.Replace)6 Tile (net.runelite.api.Tile)4 HashCode (com.google.common.hash.HashCode)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1 InputStreamReader (java.io.InputStreamReader)1 WidgetLoaded (net.runelite.api.events.WidgetLoaded)1 RSDecorativeObject (net.runelite.rs.api.RSDecorativeObject)1 RSGroundObject (net.runelite.rs.api.RSGroundObject)1 RSIndexData (net.runelite.rs.api.RSIndexData)1 RSItemLayer (net.runelite.rs.api.RSItemLayer)1 RSWallObject (net.runelite.rs.api.RSWallObject)1