LocalTile

public class LocalTile extends AbstractTile

Represents a tile in the current scene

See also

Constructors

LocalTile
Link copied to clipboard
void LocalTile(int x, int y)
LocalTile
Link copied to clipboard
void LocalTile(int x, int y, int plane)

Types

Collision
Link copied to clipboard
public enum Collision
Direction
Link copied to clipboard
public enum Direction
SceneSetting
Link copied to clipboard
public enum SceneSetting

Functions

adjustCameraTo
Link copied to clipboard
boolean adjustCameraTo()
Moves the camera to a position where the given entity or position is in view.
click
Link copied to clipboard
boolean click()
Interacts with the entity, with the first action available.
boolean click(String action)
Interacts with the entity, given a specific action.
clickOnMinimap
Link copied to clipboard
boolean clickOnMinimap()
Clicks the tile on the minimap interface.
containsWall
Link copied to clipboard
boolean containsWall(LocalTile.Direction direction)
distance
Link copied to clipboard
int distance()
Determines the distance between this entity/tile and the local player
distanceTo
Link copied to clipboard
int distanceTo(Positionable position)
Determines the distance between this entity/tile and the given entity/tile
equals
Link copied to clipboard
boolean equals(Object o)
getBounds
Link copied to clipboard
Optional<PolygongetBounds()
Gets the bounds of this tile on the screen
getCollision
Link copied to clipboard
List<LocalTile.CollisiongetCollision()
getHeight
Link copied to clipboard
int getHeight()
getLegacyTile
Link copied to clipboard
RSTile getLegacyTile()
getNeighbor
Link copied to clipboard
LocalTile getNeighbor(LocalTile.Direction direction)
Gets the neighboring tile in the specified direction
getPlane
Link copied to clipboard
int getPlane()
Gets the plane of this tile
getSceneSettings
Link copied to clipboard
List<LocalTile.SceneSettinggetSceneSettings()
getTile
Link copied to clipboard
WorldTile getTile()
Gets the WorldTile of this entity/position
getX
Link copied to clipboard
int getX()
Gets the x coordinate of this tile
getY
Link copied to clipboard
int getY()
Gets the y coordinate of this tile
hasCollision
Link copied to clipboard
boolean hasCollision(LocalTile.Collision flag)
hashCode
Link copied to clipboard
int hashCode()
hasLineOfSightTo
Link copied to clipboard
boolean hasLineOfSightTo(Positionable other)
Unmaintained.
hasSceneSetting
Link copied to clipboard
boolean hasSceneSetting(LocalTile.SceneSetting flag)
hover
Link copied to clipboard
boolean hover()
Moves the mouse to a human-randomized point on the entity.
boolean hover(String action)
Hovers the specified action on this entity.
hoverMenu
Link copied to clipboard
boolean hoverMenu(String action)
Hovers the specified action on this entity, always right-clicking and hovering over the menu
hoverOnMinimap
Link copied to clipboard
boolean hoverOnMinimap()
Attempts to hover the tile on the minimap
interact
Link copied to clipboard
boolean interact(String action)
Attempts to interact with the entity using the given action.
boolean interact(String action, BooleanSupplier interruptCondition)
Attempts to interact with the entity using the given action.
isDirectionWalkable
Link copied to clipboard
boolean isDirectionWalkable(LocalTile.Direction direction)
isHovering
Link copied to clipboard
boolean isHovering()
Checks if the mouse is currently over this entity
isInLineOfSight
Link copied to clipboard
boolean isInLineOfSight()
Unmaintained.
isLoaded
Link copied to clipboard
boolean isLoaded()
Checks if this local tile is valid and in the loaded region.
isOnMinimap
Link copied to clipboard
boolean isOnMinimap()
Determines if this tile is visible on the minimap interface.
isRendered
Link copied to clipboard
boolean isRendered()
Checks if this tile is currently being rendered (a tile is not rendered if it's covered by the 'black fog')
isVisible
Link copied to clipboard
boolean isVisible()
Determines if the entity is on the screen and able to be clicked.
isWalkable
Link copied to clipboard
boolean isWalkable()
leftClickOnScreen
Link copied to clipboard
boolean leftClickOnScreen()
Attempts to left-click this tile on the screen.
toString
Link copied to clipboard
String toString()
toWorldTile
Link copied to clipboard
WorldTile toWorldTile()
translate
Link copied to clipboard
LocalTile translate(int x, int y)
Translates (shifts) this tile by the specified x and y
LocalTile translate(int x, int y, int z)
Translates (shifts) this tile by the specified x, y, and z