RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
TeleportTablet.java
1
package
com.osroyale.content.teleport;
2
3
import
com.osroyale.Config;
4
import
com.osroyale.game.world.position.Position;
5
6
import
java.util.Arrays;
7
import
java.util.Optional;
8
55
56
public
enum
TeleportTablet
{
57
VARROCK_TABLET(8007,
new
Position
(3213, 3424, 0)),
58
LUMBRIDGE_TABLET(8008,
new
Position
(3222, 3218, 0)),
59
FALADOR_TABLET(8009,
new
Position
(2965, 3379, 0)),
60
CAMELOT_TABLET(8010,
new
Position
(2757, 3477, 0)),
61
ARDOUGNE_TABLET(8011,
new
Position
(2661, 3305, 0)),
62
WATCHTOWER_TABLET(8012,
new
Position
(2549, 3112, 0)),
63
HOME_TABLET(8013,
Config
.
DEFAULT_POSITION
),
64
RIMMINGTON_TABLET(8007,
new
Position
(3159, 3485, 0));
65
67
private
final
int
item;
68
70
private
final
Position
position;
71
80
TeleportTablet
(
int
item,
Position
position) {
81
this.item = item;
82
this.position = position;
83
}
84
90
public
int
getItem
() {
91
return
item;
92
}
93
99
public
Position
getPosition
() {
100
return
position;
101
}
102
110
public
static
Optional<TeleportTablet>
forId
(
int
id
) {
111
return
Arrays.stream(values()).filter(a -> a.item ==
id
).findAny();
112
}
113
}
com.osroyale.Config
Definition
Config.java:61
com.osroyale.Config.DEFAULT_POSITION
static final Position DEFAULT_POSITION
Definition
Config.java:235
com.osroyale.game.world.position.Position
Definition
Position.java:51
com.osroyale.content.teleport.TeleportTablet.getItem
int getItem()
Definition
TeleportTablet.java:90
com.osroyale.content.teleport.TeleportTablet.getPosition
Position getPosition()
Definition
TeleportTablet.java:99
com.osroyale.content.teleport.TeleportTablet.TeleportTablet
TeleportTablet(int item, Position position)
Definition
TeleportTablet.java:80
com.osroyale.content.teleport.TeleportTablet.forId
static Optional< TeleportTablet > forId(int id)
Definition
TeleportTablet.java:110