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:
@@ -54,4 +54,14 @@ public interface DecorativeObject extends TileObject
|
||||
* account for walls of varying widths.
|
||||
*/
|
||||
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();
|
||||
}
|
||||
|
||||
@@ -93,4 +93,14 @@ public interface GameObject extends TileObject
|
||||
* @see net.runelite.api.coords.Angle
|
||||
*/
|
||||
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();
|
||||
}
|
||||
|
||||
@@ -40,4 +40,14 @@ public interface GroundObject extends TileObject
|
||||
* @see net.runelite.api.model.Jarvis
|
||||
*/
|
||||
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();
|
||||
}
|
||||
|
||||
@@ -32,18 +32,14 @@ import java.awt.Shape;
|
||||
public interface WallObject extends TileObject
|
||||
{
|
||||
/**
|
||||
* A bitfield with the orientation of a wall
|
||||
* 1 = East
|
||||
* 2 = North
|
||||
* 4 = West
|
||||
* 8 = South
|
||||
* The angle of the first wall
|
||||
* @see net.runelite.api.coords.Angle
|
||||
*/
|
||||
int getOrientationA();
|
||||
|
||||
/**
|
||||
* A bitfield containing the orientation of the second wall on this tile,
|
||||
* or 0 if there is no second wall.
|
||||
* @see #getOrientationA
|
||||
* The angle of the second wall
|
||||
* @see net.runelite.api.coords.Angle
|
||||
*/
|
||||
int getOrientationB();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user