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

Public Member Functions

int getCode ()
 ValueIcon (int code)

Static Public Member Functions

static Optional< ValueIconlookup (int code)

Public Attributes

 BLUE =(3)
 BRONZE =(0)
 GREEN =(2)
 NONE =(-1)
 RED =(4)
 SILVER =(1)

Private Attributes

final int code

Detailed Description

Definition at line 5 of file ValueIcon.java.

Constructor & Destructor Documentation

◆ ValueIcon()

com.runehive.content.ValueIcon.ValueIcon ( int code)

Definition at line 15 of file ValueIcon.java.

15 {
16 this.code = code;
17 }

References code.

Referenced by lookup().

Here is the caller graph for this function:

Member Function Documentation

◆ getCode()

int com.runehive.content.ValueIcon.getCode ( )

Definition at line 27 of file ValueIcon.java.

27 {
28 return code;
29 }

References code.

Referenced by com.runehive.game.world.entity.mob.player.PlayerAssistant.setActivity(), and com.runehive.game.world.entity.mob.player.PlayerAssistant.setValueIcon().

Here is the caller graph for this function:

◆ lookup()

Optional< ValueIcon > com.runehive.content.ValueIcon.lookup ( int code)
static

Definition at line 19 of file ValueIcon.java.

19 {
20 if (code < -1 || code > 4) {
21 return Optional.empty();
22 }
23
24 return Optional.of(ValueIcon.values()[code + 1]);
25 }

References code, and ValueIcon().

Here is the call graph for this function:

Member Data Documentation

◆ BLUE

com.runehive.content.ValueIcon.BLUE =(3)

◆ BRONZE

com.runehive.content.ValueIcon.BRONZE =(0)

◆ code

final int com.runehive.content.ValueIcon.code
private

Definition at line 13 of file ValueIcon.java.

Referenced by getCode(), lookup(), and ValueIcon().

◆ GREEN

com.runehive.content.ValueIcon.GREEN =(2)

◆ NONE

com.runehive.content.ValueIcon.NONE =(-1)

◆ RED

com.runehive.content.ValueIcon.RED =(4)

◆ SILVER

com.runehive.content.ValueIcon.SILVER =(1)

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