RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.skill.impl.magic.Spellbook Enum Reference

The in-game spellbooks for players. More...

Public Member Functions

int getId ()
 Gets the id of this spellbook.
int getInterfaceId ()
 Gets the sidebar interfaceId of this spellbook.
String getName ()
 Gets the spellbook name.
 Spellbook (String name, int id, int sidebar)
 Constructs a new Spellbook.

Public Attributes

 ANCIENT =("Ancient", 1, 12855)
 LUNAR =("Lunar", 2, 29999)
 MODERN =("Modern", 0, 40000)

Private Attributes

final int id
 The id of this spellbook.
final String name
 The name of the spellbook.
final int sidebar
 The sidebar interfaceId of this spellbook.

Detailed Description

The in-game spellbooks for players.

Author
Daniel | Obey

Definition at line 8 of file Spellbook.java.

Constructor & Destructor Documentation

◆ Spellbook()

com.runehive.content.skill.impl.magic.Spellbook.Spellbook ( String name,
int id,
int sidebar )

Constructs a new Spellbook.

Definition at line 22 of file Spellbook.java.

22 {
23 this.name = name;
24 this.id = id;
25 this.sidebar = sidebar;
26 }

References id, name, and sidebar.

Member Function Documentation

◆ getId()

int com.runehive.content.skill.impl.magic.Spellbook.getId ( )

Gets the id of this spellbook.

Definition at line 34 of file Spellbook.java.

34 {
35 return id;
36 }

References id.

◆ getInterfaceId()

int com.runehive.content.skill.impl.magic.Spellbook.getInterfaceId ( )

Gets the sidebar interfaceId of this spellbook.

Definition at line 39 of file Spellbook.java.

39 {
40 return sidebar;
41 }

References sidebar.

Referenced by com.runehive.content.lms.LMSGame.giveItems(), and com.runehive.content.lms.LMSGame.reset().

Here is the caller graph for this function:

◆ getName()

String com.runehive.content.skill.impl.magic.Spellbook.getName ( )

Gets the spellbook name.

Definition at line 29 of file Spellbook.java.

29 {
30 return name;
31 }

References name.

Member Data Documentation

◆ ANCIENT

◆ id

final int com.runehive.content.skill.impl.magic.Spellbook.id
private

The id of this spellbook.

Definition at line 17 of file Spellbook.java.

Referenced by getId(), and Spellbook().

◆ LUNAR

◆ MODERN

◆ name

final String com.runehive.content.skill.impl.magic.Spellbook.name
private

The name of the spellbook.

Definition at line 14 of file Spellbook.java.

Referenced by getName(), and Spellbook().

◆ sidebar

final int com.runehive.content.skill.impl.magic.Spellbook.sidebar
private

The sidebar interfaceId of this spellbook.

Definition at line 19 of file Spellbook.java.

Referenced by getInterfaceId(), and Spellbook().


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