diff options
| author | ThatGravyBoat <gravyboat211@gmail.com> | 2021-02-10 08:31:18 -0330 |
|---|---|---|
| committer | ThatGravyBoat <gravyboat211@gmail.com> | 2021-02-10 08:31:18 -0330 |
| commit | ada86e95cc85700ca39022ac25eeb32febaaa2fb (patch) | |
| tree | 78516b10c84da820c93b25130a9cc77a2a23fca0 /src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java | |
| parent | a2292c332c22646bd177eaf3123ce31a74991e36 (diff) | |
| download | notenoughupdates-ada86e95cc85700ca39022ac25eeb32febaaa2fb.tar.gz notenoughupdates-ada86e95cc85700ca39022ac25eeb32febaaa2fb.tar.bz2 notenoughupdates-ada86e95cc85700ca39022ac25eeb32febaaa2fb.zip | |
Added PetInfo display, allows for the checking of certain pets for certain features, also adds monkey check for treecap cooldown and adds a notification if you are using the wrong pet.
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java index ce42b810..c47a1091 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java @@ -1011,9 +1011,10 @@ public class GuiProfileViewer extends GuiScreen { } public static class PetLevel { - float level; - float currentLevelRequirement; - float maxXP; + public float level; + public float currentLevelRequirement; + public float maxXP; + public float levelPercentage; } public static PetLevel getPetLevel(JsonArray levels, int offset, float exp) { @@ -1050,6 +1051,7 @@ public class GuiProfileViewer extends GuiScreen { levelObj.level = level; levelObj.currentLevelRequirement = currentLevelRequirement; levelObj.maxXP = xpTotal; + levelObj.levelPercentage = remainingToNextLevel; return levelObj; } |
