RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.clanchannel.content.ClanReward Enum Reference

Holds all the clan reward data. More...

Public Member Functions

 ClanReward (String name, int item, int duration, int experience, double dropModifier)
 Makes a new ClanReward

Static Public Member Functions

static Optional< ClanRewardforId (int item)
 Handles getting the clan reward based on the item identification.

Public Attributes

 DOUBLE_SKILL_EXPERIENCE_1HOUR =("Double skill experience (1hr)", 11188, 60, -1, -1)
final double dropModifier
 The drop modifier of the reward.
final int duration
 The duration of the reward.
final int experience
 The experience of the reward.
final int item
 The item identification of the reward.
final String name
 The name of the reward.

Detailed Description

Holds all the clan reward data.

Author
Daniel

Definition at line 10 of file ClanReward.java.

Constructor & Destructor Documentation

◆ ClanReward()

com.runehive.content.clanchannel.content.ClanReward.ClanReward ( String name,
int item,
int duration,
int experience,
double dropModifier )

Makes a new ClanReward

Definition at line 29 of file ClanReward.java.

29 {
30 this.name = name;
31 this.item = item;
32 this.duration = duration;
33 this.experience = experience;
34 this.dropModifier = dropModifier;
35 }

References dropModifier, duration, experience, item, and name.

Referenced by forId().

Here is the caller graph for this function:

Member Function Documentation

◆ forId()

Optional< ClanReward > com.runehive.content.clanchannel.content.ClanReward.forId ( int item)
static

Handles getting the clan reward based on the item identification.

Definition at line 38 of file ClanReward.java.

38 {
39 for (ClanReward reward : values())
40 if (reward.item == item)
41 return Optional.of(reward);
42 return Optional.empty();
43 }

References ClanReward(), and item.

Here is the call graph for this function:

Member Data Documentation

◆ DOUBLE_SKILL_EXPERIENCE_1HOUR

com.runehive.content.clanchannel.content.ClanReward.DOUBLE_SKILL_EXPERIENCE_1HOUR =("Double skill experience (1hr)", 11188, 60, -1, -1)

Definition at line 11 of file ClanReward.java.

◆ dropModifier

final double com.runehive.content.clanchannel.content.ClanReward.dropModifier

The drop modifier of the reward.

Definition at line 26 of file ClanReward.java.

Referenced by ClanReward().

◆ duration

final int com.runehive.content.clanchannel.content.ClanReward.duration

The duration of the reward.

Definition at line 20 of file ClanReward.java.

Referenced by ClanReward().

◆ experience

final int com.runehive.content.clanchannel.content.ClanReward.experience

The experience of the reward.

Definition at line 23 of file ClanReward.java.

Referenced by ClanReward().

◆ item

final int com.runehive.content.clanchannel.content.ClanReward.item

The item identification of the reward.

Definition at line 17 of file ClanReward.java.

Referenced by ClanReward(), and forId().

◆ name

final String com.runehive.content.clanchannel.content.ClanReward.name

The name of the reward.

Definition at line 14 of file ClanReward.java.

Referenced by ClanReward().


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