diff options
author | nea <romangraef@gmail.com> | 2022-07-26 16:16:44 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-07-26 16:20:17 +0200 |
commit | 1f3b703bc7b3967bcf918a57988efd14db04eabf (patch) | |
tree | 8adf88d5f942a0f65d7b66bf33d11d611dc04f51 /src/test | |
parent | 39769a4aafb1b793c8041bcf0dcf437799717b13 (diff) | |
download | neurepoparsing-1f3b703bc7b3967bcf918a57988efd14db04eabf.tar.gz neurepoparsing-1f3b703bc7b3967bcf918a57988efd14db04eabf.tar.bz2 neurepoparsing-1f3b703bc7b3967bcf918a57988efd14db04eabf.zip |
Recipe parsing
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/TestMain.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/test/java/TestMain.java b/src/test/java/TestMain.java index faf04ca..e3c05ec 100644 --- a/src/test/java/TestMain.java +++ b/src/test/java/TestMain.java @@ -1,6 +1,8 @@ +import io.github.moulberry.repo.NEURecipeCache; import io.github.moulberry.repo.NEURepository; import io.github.moulberry.repo.NEURepositoryException; import io.github.moulberry.repo.NEURepositoryVersion; +import io.github.moulberry.repo.data.NEUForgeRecipe; import java.nio.file.Paths; @@ -10,6 +12,7 @@ public class TestMain { System.out.printf("Schema %d.%d%n", NEURepositoryVersion.REPOSITORY_SCHEMA_VERSION_MAJOR, NEURepositoryVersion.REPOSITORY_SCHEMA_VERSION_MINOR); NEURepository repository = NEURepository.of(Paths.get("NotEnoughUpdates-REPO")); + NEURecipeCache recipes = NEURecipeCache.forRepo(repository); repository.reload(); System.out.println("pet mf (115): " + repository.getConstants().getBonuses().getPetRewards(115)); System.out.println("skill reward (combat 60): " + repository.getConstants().getBonuses().getAccumulativeLevelingRewards("skill_combat", 60)); @@ -19,8 +22,9 @@ public class TestMain { System.out.println("upgrade cost for HOT_CRIMSON_HELMET: " + repository.getConstants().getEssenceCost().getCosts().get("HOT_CRIMSON_HELMET")); System.out.println("first fairy soul in the hub: " + repository.getConstants().getFairySouls().getSoulLocations().get("hub").get(0)); System.out.println("soul total: " + repository.getConstants().getFairySouls().getMaxSouls()); - System.out.println("minecraft item of ASPECT_OF_THE_END: "+repository.getItems().getItemBySkyblockId("ASPECT_OF_THE_END").getMinecraftItemId()); - System.out.println("is vanilla ASPECT_OF_THE_END: "+repository.getItems().getItemBySkyblockId("ASPECT_OF_THE_END").isVanilla()); - System.out.println("is vanilla DIAMOND: "+repository.getItems().getItemBySkyblockId("DIAMOND").isVanilla()); + System.out.println("minecraft item of ASPECT_OF_THE_END: " + repository.getItems().getItemBySkyblockId("ASPECT_OF_THE_END").getMinecraftItemId()); + System.out.println("is vanilla ASPECT_OF_THE_END: " + repository.getItems().getItemBySkyblockId("ASPECT_OF_THE_END").isVanilla()); + System.out.println("is vanilla DIAMOND: " + repository.getItems().getItemBySkyblockId("DIAMOND").isVanilla()); + System.out.println("crafting recipe of DIVAN DRILL: " + ((NEUForgeRecipe) recipes.getRecipes().get("DIVAN_DRILL").stream().findAny().get()).getInputs()); } } |