@@ -27,7 +27,7 @@ package net.runelite.client.plugins.xptracker;
|
||||
import java.awt.Color;
|
||||
import lombok.Getter;
|
||||
|
||||
public enum SkillColor
|
||||
enum SkillColor
|
||||
{
|
||||
ATTACK(105, 32, 7),
|
||||
DEFENCE(98, 119, 190),
|
||||
|
||||
@@ -198,7 +198,7 @@ class XpInfoBox extends JPanel
|
||||
expHour.setText(htmlLabel("XP/Hour: ", xpSnapshotSingle.getXpPerHour()));
|
||||
}
|
||||
|
||||
public static String htmlLabel(String key, int value)
|
||||
static String htmlLabel(String key, int value)
|
||||
{
|
||||
String valueStr = StackFormatter.quantityToRSDecimalStack(value);
|
||||
|
||||
|
||||
@@ -183,7 +183,7 @@ class XpPanel extends PluginPanel
|
||||
}
|
||||
|
||||
|
||||
public void updateTotal(XpSnapshotTotal xpSnapshotTotal)
|
||||
void updateTotal(XpSnapshotTotal xpSnapshotTotal)
|
||||
{
|
||||
// if player has gained exp and hasn't switched displays yet, hide error panel and show overall info
|
||||
if (xpSnapshotTotal.getXpGainedInSession() > 0 && !overallPanel.isVisible())
|
||||
|
||||
@@ -32,7 +32,7 @@ class XpSnapshotTotal
|
||||
private final int xpGainedInSession;
|
||||
private final int xpPerHour;
|
||||
|
||||
public static XpSnapshotTotal zero()
|
||||
static XpSnapshotTotal zero()
|
||||
{
|
||||
return new XpSnapshotTotal(0, 0);
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ public class XpTrackerPlugin extends Plugin
|
||||
* This is called by the user manually clicking resetSkillState in the UI.
|
||||
* It reloads the current skills from the client after resetting internal state.
|
||||
*/
|
||||
public void resetAndInitState()
|
||||
void resetAndInitState()
|
||||
{
|
||||
resetState();
|
||||
|
||||
@@ -221,7 +221,7 @@ public class XpTrackerPlugin extends Plugin
|
||||
* Throw out everything, the user has chosen a different account or world type.
|
||||
* This resets both the internal state and UI elements
|
||||
*/
|
||||
public void resetState()
|
||||
private void resetState()
|
||||
{
|
||||
xpState.reset();
|
||||
xpPanel.resetAllInfoBoxes();
|
||||
@@ -233,7 +233,7 @@ public class XpTrackerPlugin extends Plugin
|
||||
* Will also clear the skill from the UI.
|
||||
* @param skill Skill to reset
|
||||
*/
|
||||
public void resetSkillState(Skill skill)
|
||||
void resetSkillState(Skill skill)
|
||||
{
|
||||
int currentXp = client.getSkillExperience(skill);
|
||||
xpState.resetSkill(skill, currentXp);
|
||||
@@ -246,7 +246,7 @@ public class XpTrackerPlugin extends Plugin
|
||||
* Reset all skills except for the one provided
|
||||
* @param skill Skill to ignore during reset
|
||||
*/
|
||||
public void resetOtherSkillState(Skill skill)
|
||||
void resetOtherSkillState(Skill skill)
|
||||
{
|
||||
for (Skill s : Skill.values())
|
||||
{
|
||||
@@ -289,7 +289,7 @@ public class XpTrackerPlugin extends Plugin
|
||||
xpPanel.updateTotal(xpState.getTotalSnapshot());
|
||||
}
|
||||
|
||||
public XpSnapshotSingle getSkillSnapshot(Skill skill)
|
||||
XpSnapshotSingle getSkillSnapshot(Skill skill)
|
||||
{
|
||||
return xpState.getSkillSnapshot(skill);
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ enum XpWorldType
|
||||
DMM,
|
||||
SDMM;
|
||||
|
||||
public static XpWorldType of(WorldType type)
|
||||
static XpWorldType of(WorldType type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user