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 booleancontains(int px, int py, int plane)booleancontains(net.runelite.api.Actor actor)Checks if the specified actor is contained within this WorldArea.booleancontains(net.runelite.api.coords.WorldPoint other)booleancontains(WorldArea other)booleancontains(KSGroundItem groundItem)Checks if the specified ground item is contained within this WorldArea.booleancontains(KSObject object)Checks if the specified tile object is contained within this WorldArea.booleanequals(java.lang.Object obj)net.runelite.api.coords.WorldPointgetCentrePoint()intgetHeight()intgetMaxX()intgetMaxY()intgetPlane()net.runelite.api.coords.WorldPointgetRandomPoint()intgetWidth()intgetX()intgetY()inthashCode()booleanoverlaps(WorldArea other)java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-