RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.content.famehall.FameHandler Class Reference

Static Public Member Functions

static void activate (Player player, FameEntry fameEntry)
static void remove (FameEntry fameEntry)
static Map< FameEntry, FamegetEntries (FameType type)
static void open (Player player, FameType type)
static void search (Player player, String context)
static void load ()
static void save ()

Static Public Attributes

static Map< FameEntry, FameHALL_OF_FAME = new HashMap<>()

Detailed Description

/**

Definition at line 66 of file FameHandler.java.

Member Function Documentation

◆ activate()

void com.osroyale.content.famehall.FameHandler.activate ( Player player,
FameEntry fameEntry )
inlinestatic

Checks if player should be entered in the hall of fame.

Parameters
playerThe player instance.
fameEntryThe fame entry.

Definition at line 79 of file FameHandler.java.

◆ getEntries()

Map< FameEntry, Fame > com.osroyale.content.famehall.FameHandler.getEntries ( FameType type)
inlinestatic

Filters the hall of fame entries for a certain fame type.

Parameters
typeThe fame type to filer.
Returns
Map of all the entries.

Definition at line 106 of file FameHandler.java.

◆ load()

void com.osroyale.content.famehall.FameHandler.load ( )
inlinestatic

Loads the hall of fames and puts them into the map.

Definition at line 194 of file FameHandler.java.

◆ open()

void com.osroyale.content.famehall.FameHandler.open ( Player player,
FameType type )
inlinestatic

Opens the hall of fame itemcontainer.

Parameters
playerThe player instance.
typeThe fame type tab.

Definition at line 141 of file FameHandler.java.

◆ remove()

void com.osroyale.content.famehall.FameHandler.remove ( FameEntry fameEntry)
inlinestatic

Removes a fame entry from the hall of fame.

Parameters
fameEntryThe fame entry to withdraw.

Definition at line 94 of file FameHandler.java.

◆ save()

void com.osroyale.content.famehall.FameHandler.save ( )
inlinestatic

Saves the hall of fames into a json file.

Definition at line 210 of file FameHandler.java.

◆ search()

void com.osroyale.content.famehall.FameHandler.search ( Player player,
String context )
inlinestatic

Searches through all the fame entries for a specific player.

Parameters
playerThe player instance.
contextThe context being searched.

Definition at line 179 of file FameHandler.java.

Member Data Documentation

◆ HALL_OF_FAME

Map<FameEntry, Fame> com.osroyale.content.famehall.FameHandler.HALL_OF_FAME = new HashMap<>()
static

Holds the hall of fame entries.

Definition at line 69 of file FameHandler.java.


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