RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.preloads.RandomItem Enum Reference

Public Member Functions

int getItem ()
 RandomItem (int... items)

Public Attributes

 BOOKS =(3839, 3841, 3843)
 CAPE
 GOD_CAPE =(2412, 2413, 2414)
 HAT =(656, 658, 660, 662, 664, 740, 1017, 2900, 2910, 2920, 2930, 2940)
 MYSTIC_BOTTOM =(4093, 4113, 4103)
 MYSTIC_TOP =(4091, 4101, 4111)
 ROBE_BOTTOM =(542, 548, 646, 648, 650, 652, 654, 2898, 2908, 2918, 2928, 2938)
 ROBE_TOP =(544, 546, 636, 638, 640, 642, 644, 2896, 2906, 2916, 2926, 2936)

Private Attributes

final int[] items

Detailed Description

Definition at line 6 of file RandomItem.java.

Constructor & Destructor Documentation

◆ RandomItem()

com.runehive.content.preloads.RandomItem.RandomItem ( int... items)

Definition at line 20 of file RandomItem.java.

20 {
21 this.items = items;
22 }

References items.

Member Function Documentation

◆ getItem()

int com.runehive.content.preloads.RandomItem.getItem ( )

Definition at line 24 of file RandomItem.java.

24 {
25 return Utility.randomElement(items);
26 }

References items, and com.runehive.util.Utility.randomElement().

Here is the call graph for this function:

Member Data Documentation

◆ BOOKS

com.runehive.content.preloads.RandomItem.BOOKS =(3839, 3841, 3843)

Definition at line 8 of file RandomItem.java.

◆ CAPE

com.runehive.content.preloads.RandomItem.CAPE
Initial value:
=(4315, 4317, 4319, 4321, 4323, 4325, 4327, 4329, 4331, 4333, 4335, 4337, 4339, 4341, 4343, 4345, 4347, 4349,
4351, 4353, 4355, 4357, 4359, 4361, 4363, 4365, 4367, 4369, 4371, 4373, 4375, 4377, 4379, 4381, 4383, 4385,
4387, 4389, 4391, 4393, 4395, 4397, 4399, 4401, 4403, 4405, 4407, 4409, 4411, 4413)

Definition at line 16 of file RandomItem.java.

◆ GOD_CAPE

com.runehive.content.preloads.RandomItem.GOD_CAPE =(2412, 2413, 2414)

Definition at line 7 of file RandomItem.java.

◆ HAT

com.runehive.content.preloads.RandomItem.HAT =(656, 658, 660, 662, 664, 740, 1017, 2900, 2910, 2920, 2930, 2940)

Definition at line 9 of file RandomItem.java.

◆ items

final int [] com.runehive.content.preloads.RandomItem.items
private

Definition at line 18 of file RandomItem.java.

Referenced by getItem(), and RandomItem().

◆ MYSTIC_BOTTOM

com.runehive.content.preloads.RandomItem.MYSTIC_BOTTOM =(4093, 4113, 4103)

Definition at line 13 of file RandomItem.java.

◆ MYSTIC_TOP

com.runehive.content.preloads.RandomItem.MYSTIC_TOP =(4091, 4101, 4111)

Definition at line 12 of file RandomItem.java.

◆ ROBE_BOTTOM

com.runehive.content.preloads.RandomItem.ROBE_BOTTOM =(542, 548, 646, 648, 650, 652, 654, 2898, 2908, 2918, 2928, 2938)

Definition at line 11 of file RandomItem.java.

◆ ROBE_TOP

com.runehive.content.preloads.RandomItem.ROBE_TOP =(544, 546, 636, 638, 640, 642, 644, 2896, 2906, 2916, 2926, 2936)

Definition at line 10 of file RandomItem.java.


The documentation for this enum was generated from the following file: