RuneHive-Game
Loading...
Searching...
No Matches
RandomItem.java
Go to the documentation of this file.
1package com.runehive.content.preloads;
2
3
4import com.runehive.util.Utility;
5
6public enum RandomItem {
7 GOD_CAPE(2412, 2413, 2414),
8 BOOKS(3839, 3841, 3843),
9 HAT(656, 658, 660, 662, 664, 740, 1017, 2900, 2910, 2920, 2930, 2940),
10 ROBE_TOP(544, 546, 636, 638, 640, 642, 644, 2896, 2906, 2916, 2926, 2936),
11 ROBE_BOTTOM(542, 548, 646, 648, 650, 652, 654, 2898, 2908, 2918, 2928, 2938),
12 MYSTIC_TOP(4091, 4101, 4111),
13 MYSTIC_BOTTOM(4093, 4113, 4103),
14 CAPE(4315, 4317, 4319, 4321, 4323, 4325, 4327, 4329, 4331, 4333, 4335, 4337, 4339, 4341, 4343, 4345, 4347, 4349,
15 4351, 4353, 4355, 4357, 4359, 4361, 4363, 4365, 4367, 4369, 4371, 4373, 4375, 4377, 4379, 4381, 4383, 4385,
16 4387, 4389, 4391, 4393, 4395, 4397, 4399, 4401, 4403, 4405, 4407, 4409, 4411, 4413);
17
18 private final int[] items;
19
20 RandomItem(int... items) {
21 this.items = items;
22 }
23
24 public int getItem() {
26 }
27}
Handles miscellaneous methods.
Definition Utility.java:27
static< T > T randomElement(Collection< T > collection)
Picks a random element out of any array type.
Definition Utility.java:248