RuneHive-Game
Loading...
Searching...
No Matches
Spellbook.java
Go to the documentation of this file.
1package com.runehive.content.skill.impl.magic;
2
3/**
4 * The in-game spellbooks for players.
5 *
6 * @author Daniel | Obey
7 */
8public enum Spellbook {
9 MODERN("Modern", 0, 40000),
10 ANCIENT("Ancient", 1, 12855),
11 LUNAR("Lunar", 2, 29999);
12
13 /** The name of the spellbook. */
14 private final String name;
15
16 /** The id of this spellbook. */
17 private final int id;
18 /** The sidebar interfaceId of this spellbook. */
19 private final int sidebar;
20
21 /** Constructs a new <code>Spellbook</code>. */
22 Spellbook(String name, int id, int sidebar) {
23 this.name = name;
24 this.id = id;
25 this.sidebar = sidebar;
26 }
27
28 /** Gets the spellbook name. */
29 public String getName() {
30 return name;
31 }
32
33 /** Gets the id of this spellbook. */
34 public int getId() {
35 return id;
36 }
37
38 /** Gets the sidebar interfaceId of this spellbook. */
39 public int getInterfaceId() {
40 return sidebar;
41 }
42}
int getInterfaceId()
Gets the sidebar interfaceId of this spellbook.
int getId()
Gets the id of this spellbook.
final String name
The name of the spellbook.
final int id
The id of this spellbook.
Spellbook(String name, int id, int sidebar)
Constructs a new Spellbook.
String getName()
Gets the spellbook name.
final int sidebar
The sidebar interfaceId of this spellbook.