diff options
author | ThatGravyBoat <ThatGravyBoat@users.noreply.github.com> | 2021-07-15 04:07:36 +0000 |
---|---|---|
committer | GitHub Action <actions@github.com> | 2021-07-15 04:07:36 +0000 |
commit | 4e4058da31c3575b69c69d2d7bb3c9af29e248dc (patch) | |
tree | d46d48754f080386e23bb86e884580fed0f555f3 /src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerObject.java | |
parent | 718740e85f48b57bf712a62f811cd4d34dd98450 (diff) | |
download | SkyblockHud-Death-Defied-4e4058da31c3575b69c69d2d7bb3c9af29e248dc.tar.gz SkyblockHud-Death-Defied-4e4058da31c3575b69c69d2d7bb3c9af29e248dc.tar.bz2 SkyblockHud-Death-Defied-4e4058da31c3575b69c69d2d7bb3c9af29e248dc.zip |
Prettified Code!
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerObject.java')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerObject.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerObject.java b/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerObject.java index 58034d5..6013b09 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerObject.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerObject.java @@ -19,14 +19,14 @@ public class TrackerObject { private final boolean isEntity; private int count; - public TrackerObject(JsonObject jsonObject, EnumSet<Locations> locations){ + public TrackerObject(JsonObject jsonObject, EnumSet<Locations> locations) { this.stack = decodeToItemStack(jsonObject); this.internalId = jsonObject.get("id").getAsString(); this.isEntity = jsonObject.get("id").getAsString().contains("entity:"); this.locations = locations; } - public static ItemStack decodeToItemStack(JsonObject jsonObject){ + public static ItemStack decodeToItemStack(JsonObject jsonObject) { jsonObject = jsonObject.getAsJsonObject("displayItem"); int meta = jsonObject.get("meta").getAsInt(); ResourceLocation itemid = new ResourceLocation(jsonObject.get("item").getAsString()); @@ -59,7 +59,7 @@ public class TrackerObject { } public void increaseCount(int amount) { - count+=amount; + count += amount; } public void increaseCount() { @@ -89,6 +89,4 @@ public class TrackerObject { public boolean isEntity() { return isEntity; } - - } |