Package rs.kreme.ksbot.api.hooks
Class WorldArea
- java.lang.Object
-
- rs.kreme.ksbot.api.hooks.WorldArea
-
public class WorldArea extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(int px, int py, int plane)
boolean
contains(net.runelite.api.Actor actor)
Checks if the specified actor is contained within this WorldArea.boolean
contains(net.runelite.api.coords.WorldPoint other)
boolean
contains(WorldArea other)
boolean
contains(KSGroundItem groundItem)
Checks if the specified ground item is contained within this WorldArea.boolean
contains(KSObject object)
Checks if the specified tile object is contained within this WorldArea.boolean
equals(java.lang.Object obj)
net.runelite.api.coords.WorldPoint
getCentrePoint()
int
getHeight()
int
getMaxX()
int
getMaxY()
int
getPlane()
net.runelite.api.coords.WorldPoint
getRandomPoint()
int
getWidth()
int
getX()
int
getY()
int
hashCode()
boolean
overlaps(WorldArea other)
java.lang.String
toString()
-
-
-
Method Detail
-
getX
public int getX()
-
getY
public int getY()
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
getPlane
public int getPlane()
-
getMaxX
public int getMaxX()
-
getMaxY
public int getMaxY()
-
contains
public boolean contains(int px, int py, int plane)
-
contains
public boolean contains(WorldArea other)
-
contains
public boolean contains(net.runelite.api.coords.WorldPoint other)
-
overlaps
public boolean overlaps(WorldArea other)
-
getCentrePoint
public net.runelite.api.coords.WorldPoint getCentrePoint()
-
contains
public boolean contains(net.runelite.api.Actor actor)
Checks if the specified actor is contained within this WorldArea.- Parameters:
actor
- The actor to check.- Returns:
- True if the actor's location is within the area, false otherwise.
-
getRandomPoint
public net.runelite.api.coords.WorldPoint getRandomPoint()
-
contains
public boolean contains(KSObject object)
Checks if the specified tile object is contained within this WorldArea.- Parameters:
object
- The tile object to check.- Returns:
- True if the tile object's location is within the area, false otherwise.
-
contains
public boolean contains(KSGroundItem groundItem)
Checks if the specified ground item is contained within this WorldArea.- Parameters:
groundItem
- The ground item to check.- Returns:
- True if the ground item's location is within the area, false otherwise.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-