Created
April 14, 2018 19:20
-
-
Save LeviSchuck/1f23b83781b1f45bda03b8f9f5fe2a69 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/xptracker/XpSnapshotSingle.java b/runelite-client/src/main/java/net/runelite/client/plugins/xptracker/XpSnapshotSingle.java | |
index 69d5d77..ccd0706 100644 | |
--- a/runelite-client/src/main/java/net/runelite/client/plugins/xptracker/XpSnapshotSingle.java | |
+++ b/runelite-client/src/main/java/net/runelite/client/plugins/xptracker/XpSnapshotSingle.java | |
@@ -24,18 +24,38 @@ | |
*/ | |
package net.runelite.client.plugins.xptracker; | |
-import lombok.Value; | |
+import lombok.Builder; | |
+import lombok.Getter; | |
+import lombok.ToString; | |
-@Value | |
+@Builder | |
+@ToString | |
public class XpSnapshotSingle | |
{ | |
- private final int currentLevel; | |
- private final int xpGainedInSession; | |
- private final int xpRemainingToGoal; | |
- private final int xpPerHour; | |
- private final int skillProgressToGoal; | |
- private final int actionsInSession; | |
- private final int actionsRemainingToGoal; | |
- private final int actionsPerHour; | |
- private final String timeTillGoal; | |
+ @Getter | |
+ private int currentLevel; | |
+ | |
+ @Getter | |
+ private int xpGainedInSession; | |
+ | |
+ @Getter | |
+ private int xpRemainingToGoal; | |
+ | |
+ @Getter | |
+ private int xpPerHour; | |
+ | |
+ @Getter | |
+ private int skillProgressToGoal; | |
+ | |
+ @Getter | |
+ private int actionsInSession; | |
+ | |
+ @Getter | |
+ private int actionsRemainingToGoal; | |
+ | |
+ @Getter | |
+ private int actionsPerHour; | |
+ | |
+ @Getter | |
+ private String timeTillGoal; | |
} | |
diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/xptracker/XpStateSingle.java b/runelite-client/src/main/java/net/runelite/client/plugins/xptracker/XpStateSingle.java | |
index 67dc75e..20fb3a4 100644 | |
--- a/runelite-client/src/main/java/net/runelite/client/plugins/xptracker/XpStateSingle.java | |
+++ b/runelite-client/src/main/java/net/runelite/client/plugins/xptracker/XpStateSingle.java | |
@@ -177,16 +177,16 @@ class XpStateSingle | |
XpSnapshotSingle snapshot() | |
{ | |
- return new XpSnapshotSingle( | |
- getLevel(), | |
- getXpGained(), | |
- getXpRemaining(), | |
- getXpHr(), | |
- getSkillProgress(), | |
- getActions(), | |
- getActionsRemaining(), | |
- getActionsHr(), | |
- getTimeTillLevel() | |
- ); | |
+ return XpSnapshotSingle.builder() | |
+ .currentLevel(getLevel()) | |
+ .xpGainedInSession(getXpGained()) | |
+ .xpRemainingToGoal(getXpRemaining()) | |
+ .xpPerHour(getXpHr()) | |
+ .skillProgressToGoal(getSkillProgress()) | |
+ .actionsInSession(getActions()) | |
+ .actionsRemainingToGoal(getActionsRemaining()) | |
+ .actionsPerHour(getActionsHr()) | |
+ .timeTillGoal(getTimeTillLevel()) | |
+ .build(); | |
} | |
} | |
\ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment