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

Static Public Member Functions

static void activate (Player player, AchievementKey achievement)
static void activate (Player player, AchievementKey achievement, int increase)
static void completeAll (Player player)
static boolean completed (Player player, AchievementList achievement)
static int getTotalCompleted (Player player)
static int getDifficultyCompletion (Player player, AchievementType difficulty)
static int getDifficultyAchievement (AchievementType difficulty)
static boolean completedAll (Player player)

Detailed Description

Handles the achievements.

Author
Daniel

Definition at line 50 of file AchievementHandler.java.

Member Function Documentation

◆ activate() [1/2]

void com.osroyale.content.achievement.AchievementHandler.activate ( Player player,
AchievementKey achievement )
inlinestatic

Activates the achievement for the individual player. Increments the completed amount for the player. If the player has completed the achievement, they will receive their reward.

Definition at line 57 of file AchievementHandler.java.

◆ activate() [2/2]

void com.osroyale.content.achievement.AchievementHandler.activate ( Player player,
AchievementKey achievement,
int increase )
inlinestatic

Activates the achievement for the individual player. Increments the completed amount for the player. If the player has completed the achievement, they will receive their reward.

Definition at line 66 of file AchievementHandler.java.

◆ completeAll()

void com.osroyale.content.achievement.AchievementHandler.completeAll ( Player player)
inlinestatic

Completes all the achievements for player (used for administrative purposes).

Definition at line 97 of file AchievementHandler.java.

◆ completed()

boolean com.osroyale.content.achievement.AchievementHandler.completed ( Player player,
AchievementList achievement )
inlinestatic

Checks if the reward is completed.

Definition at line 111 of file AchievementHandler.java.

◆ completedAll()

boolean com.osroyale.content.achievement.AchievementHandler.completedAll ( Player player)
inlinestatic

Checks if a player has completed all the available achievements.

Definition at line 160 of file AchievementHandler.java.

◆ getDifficultyAchievement()

int com.osroyale.content.achievement.AchievementHandler.getDifficultyAchievement ( AchievementType difficulty)
inlinestatic

Handles getting the amount of achievements based on the difficulty.

Definition at line 151 of file AchievementHandler.java.

◆ getDifficultyCompletion()

int com.osroyale.content.achievement.AchievementHandler.getDifficultyCompletion ( Player player,
AchievementType difficulty )
inlinestatic

Handles getting the amount of achievements completed based on it's difficulty.

Definition at line 141 of file AchievementHandler.java.

◆ getTotalCompleted()

int com.osroyale.content.achievement.AchievementHandler.getTotalCompleted ( Player player)
inlinestatic

Gets the total amount of achievements completed.

Definition at line 118 of file AchievementHandler.java.


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