1package com.runehive.content;
3import com.runehive.game.world.entity.mob.player.Player;
4import com.runehive.game.world.items.Item;
5import com.runehive.util.chance.Chance;
6import com.runehive.util.chance.WeightedChance;
8import java.util.Arrays;
Handles opening the crystal chest.
static void createKey(Player player)
Handles creating a key.
static final Item[] KEY_HALVES
The two item key halves.
static final Item KEY
The item key to enter the crystal chest.
static final Chance< Item > ITEMS
Holds all the crystal chest rewards.
static Item getReward()
Handles getting an item reward from the chest.
final DialogueFactory execute()
Retrieves the next dialogue in the chain and executes it.
final DialogueFactory sendItem(String title, String text, Item item)
This class represents a character controlled by a player.
final Inventory inventory
DialogueFactory dialogueFactory
The container class that represents an item that can be interacted with.
boolean remove(Item item)
Attempts to withdraw item from this container.
boolean add(Item item)
Attempts to deposit item into this container.
final boolean containsAll(int... identifiers)
Determines if this container contains all identifiers.
An item with a common chance.