|
RuneHive-Game
|
The mystery box class. More...
Static Public Member Functions | |
| static void | load () |
| Handles loading the mystery boxes. | |
Protected Member Functions | |
| abstract int | item () |
| The item identification of the mystery box. | |
| abstract String | name () |
| The name of the mystery box. | |
| abstract MysteryItem[] | rewards () |
| The rewards for the mystery box. | |
Static Package Functions | |
| static Optional< MysteryBox > | getMysteryBox (int item) |
| Handles getting the mystery box. | |
Static Private Attributes | |
| static Map< Integer, MysteryBox > | MYSTERY_BOXES = new HashMap<>() |
| The map containing all the mystery boxes. | |
The mystery box class.
Definition at line 17 of file MysteryBox.java.
|
staticpackage |
Handles getting the mystery box.
Definition at line 36 of file MysteryBox.java.
References item(), and MYSTERY_BOXES.
Referenced by com.runehive.content.mysterybox.MysteryBoxManager.click().
|
abstractprotected |
The item identification of the mystery box.
Reimplemented in com.runehive.content.mysterybox.impl.BronzeMysteryBox, com.runehive.content.mysterybox.impl.GoldMysteryBox, com.runehive.content.mysterybox.impl.PetMysteryBox, and com.runehive.content.mysterybox.impl.SilverMysteryBox.
Referenced by getMysteryBox(), and load().
|
static |
Handles loading the mystery boxes.
Definition at line 23 of file MysteryBox.java.
References item(), and MYSTERY_BOXES.
Referenced by com.runehive.RuneHive.processParallelStartupTasks().
|
abstractprotected |
The name of the mystery box.
Reimplemented in com.runehive.content.mysterybox.impl.BronzeMysteryBox, com.runehive.content.mysterybox.impl.GoldMysteryBox, com.runehive.content.mysterybox.impl.PetMysteryBox, and com.runehive.content.mysterybox.impl.SilverMysteryBox.
|
abstractprotected |
The rewards for the mystery box.
Reimplemented in com.runehive.content.mysterybox.impl.BronzeMysteryBox, com.runehive.content.mysterybox.impl.GoldMysteryBox, com.runehive.content.mysterybox.impl.PetMysteryBox, and com.runehive.content.mysterybox.impl.SilverMysteryBox.
|
staticprivate |
The map containing all the mystery boxes.
Definition at line 20 of file MysteryBox.java.
Referenced by getMysteryBox(), and load().