RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.game.world.Interactable Interface Reference
Inheritance diagram for com.osroyale.game.world.Interactable:

Public Member Functions

Position getPosition ()
default int getX ()
default int getY ()
default int getHeight ()
int width ()
int length ()

Static Public Member Functions

static Interactable create (Position position)
static Interactable create (Position position, int width, int length)

Detailed Description

An object implementing Interactable has uses.

Author
Michael | Chex

Definition at line 10 of file Interactable.java.

Member Function Documentation

◆ create() [1/2]

Interactable com.osroyale.game.world.Interactable.create ( Position position)
inlinestatic

Creates a new instance of an Interactable.

Parameters
positionthe position.
Returns
a new instance

Definition at line 42 of file Interactable.java.

◆ create() [2/2]

Interactable com.osroyale.game.world.Interactable.create ( Position position,
int width,
int length )
inlinestatic

Creates a new instance of an Interactable.

Parameters
positionthe position.
widththe width
lengththe length
Returns
a new instance

Definition at line 69 of file Interactable.java.

◆ getHeight()

default int com.osroyale.game.world.Interactable.getHeight ( )
inline
Returns
the z coordinate of the getPosition()

Implemented in com.osroyale.game.world.entity.Entity.

Definition at line 26 of file Interactable.java.

◆ getPosition()

◆ getX()

default int com.osroyale.game.world.Interactable.getX ( )
inline
Returns
the x coordinate of the getPosition()

Implemented in com.osroyale.game.world.entity.Entity.

Definition at line 16 of file Interactable.java.

◆ getY()

default int com.osroyale.game.world.Interactable.getY ( )
inline
Returns
the y coordinate of the getPosition()

Implemented in com.osroyale.game.world.entity.Entity.

Definition at line 21 of file Interactable.java.

◆ length()

int com.osroyale.game.world.Interactable.length ( )

◆ width()

int com.osroyale.game.world.Interactable.width ( )

The documentation for this interface was generated from the following file: