RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
Interactable.java
1
package
com.osroyale.game.world;
2
3
import
com.osroyale.game.world.position.Position;
4
10
public
interface
Interactable
{
11
13
Position
getPosition
();
14
16
default
int
getX
() {
17
return
getPosition
().
getX
();
18
}
19
21
default
int
getY
() {
22
return
getPosition
().
getY
();
23
}
24
26
default
int
getHeight
() {
27
return
getPosition
().
getHeight
();
28
}
29
31
int
width
();
32
34
int
length
();
35
42
static
Interactable
create
(
Position
position) {
43
return
new
Interactable
() {
44
@Override
45
public
Position
getPosition
() {
46
return
position;
47
}
48
49
@Override
50
public
int
width
() {
51
return
1;
52
}
53
54
@Override
55
public
int
length
() {
56
return
1;
57
}
58
};
59
}
60
69
static
Interactable
create
(
Position
position,
int
width
,
int
length
) {
70
return
new
Interactable
() {
71
@Override
72
public
Position
getPosition
() {
73
return
position;
74
}
75
76
@Override
77
public
int
width
() {
78
return
width
;
79
}
80
81
@Override
82
public
int
length
() {
83
return
length
;
84
}
85
};
86
}
87
88
}
com.osroyale.game.world.position.Position
Definition
Position.java:51
com.osroyale.game.world.position.Position.getY
int getY()
Definition
Position.java:83
com.osroyale.game.world.position.Position.getHeight
int getHeight()
Definition
Position.java:88
com.osroyale.game.world.position.Position.getX
int getX()
Definition
Position.java:78
com.osroyale.game.world.Interactable
Definition
Interactable.java:10
com.osroyale.game.world.Interactable.length
int length()
com.osroyale.game.world.Interactable.create
static Interactable create(Position position, int width, int length)
Definition
Interactable.java:69
com.osroyale.game.world.Interactable.getX
default int getX()
Definition
Interactable.java:16
com.osroyale.game.world.Interactable.width
int width()
com.osroyale.game.world.Interactable.getHeight
default int getHeight()
Definition
Interactable.java:26
com.osroyale.game.world.Interactable.getY
default int getY()
Definition
Interactable.java:21
com.osroyale.game.world.Interactable.create
static Interactable create(Position position)
Definition
Interactable.java:42
com.osroyale.game.world.Interactable.getPosition
Position getPosition()