|
RuneHive-Game
|
Handles opening the crystal chest. More...
Static Public Member Functions | |
| static void | createKey (Player player) |
| Handles creating a key. | |
| static Item | getReward () |
| Handles getting an item reward from the chest. | |
Static Public Attributes | |
| static final Item | KEY = new Item(989) |
| The item key to enter the crystal chest. | |
| static final Item[] | KEY_HALVES = {new Item(985), new Item(987)} |
| The two item key halves. | |
Static Private Attributes | |
| static final Chance< Item > | ITEMS |
| Holds all the crystal chest rewards. | |
Handles opening the crystal chest.
Definition at line 15 of file CrystalChest.java.
|
static |
Handles creating a key.
Definition at line 24 of file CrystalChest.java.
References com.runehive.game.world.items.containers.ItemContainer.add(), com.runehive.game.world.items.containers.ItemContainer.containsAll(), com.runehive.game.world.entity.mob.player.Player.dialogueFactory, com.runehive.content.dialogue.DialogueFactory.execute(), com.runehive.game.world.entity.mob.player.Player.inventory, KEY, KEY_HALVES, com.runehive.game.world.items.containers.ItemContainer.remove(), and com.runehive.content.dialogue.DialogueFactory.sendItem().
|
static |
Handles getting an item reward from the chest.
Definition at line 34 of file CrystalChest.java.
References ITEMS.
Holds all the crystal chest rewards.
Definition at line 39 of file CrystalChest.java.
Referenced by getReward().
The item key to enter the crystal chest.
Definition at line 21 of file CrystalChest.java.
Referenced by createKey().
The two item key halves.
Definition at line 18 of file CrystalChest.java.
Referenced by createKey(), com.runehive.game.world.entity.mob.npc.drop.NpcDropManager.drop(), and com.runehive.game.world.entity.mob.npc.drop.NpcDropManager.handleMiscDrops().