Skip to content

Commit

Permalink
added Crystal Nucleus loot analyzer - Part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
doej1367 committed Jan 22, 2022
1 parent 936f43d commit 048955c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/main/java/me/hyblockrnganalyzer/event/NucleusLootEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public TreeMap<String, Integer> getArmorStandContentsSummary() {
// INFO EntityTypes: EntityWither, EntityPlayerSP, EntityOtherPlayerMP,
// EntityItem, EntityArmorStand
List<Entity> entities = Minecraft.getMinecraft().theWorld.getLoadedEntityList();
System.out.println("Entities: " + entities.size());
for (Entity e : entities) {
Vec3 v = e.getPositionVector();
double x = v.xCoord, y = v.yCoord, z = v.zCoord;
Expand All @@ -29,16 +28,9 @@ public TreeMap<String, Integer> getArmorStandContentsSummary() {
for (ItemStack i : inventoryContents) {
if (i == null)
continue;
System.out.println(i);
String name = i.getDisplayName().replaceAll("\\u00a7.", "");
int count = i.stackSize;
// TODO "Head" item -> ArmorStand title "HotM Experience"
// TODO double check count as it seems to be always 1
if (name.contains("HotM Experience")) {
String tmp = "HotM Experience";
count = Integer.parseInt(name.replaceAll(tmp, "").trim());
name = tmp;
}
// INFO "Head" item == "800 HotM Experience"
contents.put(name, contents.getOrDefault(name, 0) + count);
}
}
Expand Down

0 comments on commit 048955c

Please sign in to comment.