RuneHive-Game
Loading...
Searching...
No Matches
MysteryItem.java
Go to the documentation of this file.
1package com.runehive.content.mysterybox;
2
3import com.runehive.game.world.items.Item;
4
5import static com.runehive.content.mysterybox.MysteryRarity.COMMON;
6
7public class MysteryItem extends Item {
8
10
11 public MysteryItem(int id, int amount, MysteryRarity rarity) {
12 super(id, amount);
13 this.rarity = rarity;
14 }
15
16 public MysteryItem(int id, int amount) {
17 this(id, amount, COMMON);
18 }
19}
MysteryItem(int id, int amount, MysteryRarity rarity)
int id
The identification of this item.
Definition Item.java:26
int amount
The quantity of this item.
Definition Item.java:31
Item(int id, int amount)
Creates a new Item.
Definition Item.java:36