RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.teleport.TeleportTablet Enum Reference

Holds all the teleport tablet data. More...

Collaboration diagram for com.runehive.content.teleport.TeleportTablet:

Public Member Functions

int getItem ()
 Gets the item identification of the tablet.
Position getPosition ()
 Gets the position of the teleport tablet.
 TeleportTablet (int item, Position position)
 The teleport tablet data.

Static Public Member Functions

static Optional< TeleportTabletforId (int id)
 Gets the teleport tablet data based on the item identification.

Public Attributes

 ARDOUGNE_TABLET =(8011, new Position(2661, 3305, 0))
 CAMELOT_TABLET =(8010, new Position(2757, 3477, 0))
 FALADOR_TABLET =(8009, new Position(2965, 3379, 0))
 HOME_TABLET =(8013, Config.DEFAULT_POSITION)
 LUMBRIDGE_TABLET =(8008, new Position(3222, 3218, 0))
 RIMMINGTON_TABLET =(8007, new Position(3159, 3485, 0))
 VARROCK_TABLET =(8007, new Position(3213, 3424, 0))
 WATCHTOWER_TABLET =(8012, new Position(2549, 3112, 0))

Private Attributes

final int item
 The item identification of the tablet.
final Position position
 The position which the tablet will teleport the player.

Detailed Description

Holds all the teleport tablet data.

Author
Daniel

Definition at line 14 of file TeleportTablet.java.

Constructor & Destructor Documentation

◆ TeleportTablet()

com.runehive.content.teleport.TeleportTablet.TeleportTablet ( int item,
Position position )

The teleport tablet data.

Parameters
itemThe item identification of the tablet.
positionThe teleport position of the tablet.

Definition at line 38 of file TeleportTablet.java.

38 {
39 this.item = item;
40 this.position = position;
41 }

References item, and position.

Member Function Documentation

◆ forId()

Optional< TeleportTablet > com.runehive.content.teleport.TeleportTablet.forId ( int id)
static

Gets the teleport tablet data based on the item identification.

Parameters
idThe item identification.
Returns
The teleport tablet data.

Definition at line 68 of file TeleportTablet.java.

68 {
69 return Arrays.stream(values()).filter(a -> a.item == id).findAny();
70 }

◆ getItem()

int com.runehive.content.teleport.TeleportTablet.getItem ( )

Gets the item identification of the tablet.

Returns
The item identification.

Definition at line 48 of file TeleportTablet.java.

48 {
49 return item;
50 }

References item.

◆ getPosition()

Position com.runehive.content.teleport.TeleportTablet.getPosition ( )

Gets the position of the teleport tablet.

Returns
The position.

Definition at line 57 of file TeleportTablet.java.

57 {
58 return position;
59 }

References position.

Member Data Documentation

◆ ARDOUGNE_TABLET

com.runehive.content.teleport.TeleportTablet.ARDOUGNE_TABLET =(8011, new Position(2661, 3305, 0))

Definition at line 19 of file TeleportTablet.java.

◆ CAMELOT_TABLET

com.runehive.content.teleport.TeleportTablet.CAMELOT_TABLET =(8010, new Position(2757, 3477, 0))

Definition at line 18 of file TeleportTablet.java.

◆ FALADOR_TABLET

com.runehive.content.teleport.TeleportTablet.FALADOR_TABLET =(8009, new Position(2965, 3379, 0))

Definition at line 17 of file TeleportTablet.java.

◆ HOME_TABLET

com.runehive.content.teleport.TeleportTablet.HOME_TABLET =(8013, Config.DEFAULT_POSITION)

Definition at line 21 of file TeleportTablet.java.

◆ item

final int com.runehive.content.teleport.TeleportTablet.item
private

The item identification of the tablet.

Definition at line 25 of file TeleportTablet.java.

Referenced by getItem(), and TeleportTablet().

◆ LUMBRIDGE_TABLET

com.runehive.content.teleport.TeleportTablet.LUMBRIDGE_TABLET =(8008, new Position(3222, 3218, 0))

Definition at line 16 of file TeleportTablet.java.

◆ position

final Position com.runehive.content.teleport.TeleportTablet.position
private

The position which the tablet will teleport the player.

Definition at line 28 of file TeleportTablet.java.

Referenced by getPosition(), and TeleportTablet().

◆ RIMMINGTON_TABLET

com.runehive.content.teleport.TeleportTablet.RIMMINGTON_TABLET =(8007, new Position(3159, 3485, 0))

Definition at line 22 of file TeleportTablet.java.

◆ VARROCK_TABLET

com.runehive.content.teleport.TeleportTablet.VARROCK_TABLET =(8007, new Position(3213, 3424, 0))

Definition at line 15 of file TeleportTablet.java.

◆ WATCHTOWER_TABLET

com.runehive.content.teleport.TeleportTablet.WATCHTOWER_TABLET =(8012, new Position(2549, 3112, 0))

Definition at line 20 of file TeleportTablet.java.


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