api: add getConfig to deco, game, and ground objects

Additionally fix the wall object orientation javadoc, the returned value is an angle
This commit is contained in:
Adam
2022-01-02 19:39:43 -05:00
parent 0da504769d
commit a8e2e88810
4 changed files with 34 additions and 8 deletions

View File

@@ -54,4 +54,14 @@ public interface DecorativeObject extends TileObject
* account for walls of varying widths. * account for walls of varying widths.
*/ */
int getYOffset(); int getYOffset();
/**
* A bitfield containing various flags:
* <pre>{@code
* object type id = bits & 0x20
* orientation (0-3) = bits >>> 6 & 3
* supports items = bits >>> 8 & 1
* }</pre>
*/
int getConfig();
} }

View File

@@ -93,4 +93,14 @@ public interface GameObject extends TileObject
* @see net.runelite.api.coords.Angle * @see net.runelite.api.coords.Angle
*/ */
int getModelOrientation(); int getModelOrientation();
/**
* A bitfield containing various flags:
* <pre>{@code
* object type id = bits & 0x20
* orientation (0-3) = bits >>> 6 & 3
* supports items = bits >>> 8 & 1
* }</pre>
*/
int getConfig();
} }

View File

@@ -40,4 +40,14 @@ public interface GroundObject extends TileObject
* @see net.runelite.api.model.Jarvis * @see net.runelite.api.model.Jarvis
*/ */
Shape getConvexHull(); Shape getConvexHull();
/**
* A bitfield containing various flags:
* <pre>{@code
* object type id = bits & 0x20
* orientation (0-3) = bits >>> 6 & 3
* supports items = bits >>> 8 & 1
* }</pre>
*/
int getConfig();
} }

View File

@@ -32,18 +32,14 @@ import java.awt.Shape;
public interface WallObject extends TileObject public interface WallObject extends TileObject
{ {
/** /**
* A bitfield with the orientation of a wall * The angle of the first wall
* 1 = East * @see net.runelite.api.coords.Angle
* 2 = North
* 4 = West
* 8 = South
*/ */
int getOrientationA(); int getOrientationA();
/** /**
* A bitfield containing the orientation of the second wall on this tile, * The angle of the second wall
* or 0 if there is no second wall. * @see net.runelite.api.coords.Angle
* @see #getOrientationA
*/ */
int getOrientationB(); int getOrientationB();