-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTest.java
More file actions
56 lines (42 loc) · 2.06 KB
/
Copy pathTest.java
File metadata and controls
56 lines (42 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import tech.thatgravyboat.repolib.api.RepoAPI;
import tech.thatgravyboat.repolib.api.RepoVersion;
import tech.thatgravyboat.repolib.api.recipes.Recipe;
import tech.thatgravyboat.repolib.internal.RepoImplementation;
import java.nio.file.Path;
import java.util.Scanner;
public class Test {
public static void main(String[] args) throws InterruptedException {
System.setProperty(RepoImplementation.PROPERTY, Impl.class.getName());
RepoAPI.setup(RepoVersion.V1_21_5, it -> {
var data = RepoAPI.attributes().getAttribute("ACCESSORY_SIZE");
System.out.println(data);
var kat = RepoAPI.recipes().getRecipes(Recipe.Type.KAT);
System.out.println(kat);
var gdrag = RepoAPI.pets().getPet("GOLDEN_DRAGON").tiers().values().stream().findFirst().get();
System.out.println("lvl 0");
gdrag.getFormattedLore(0).forEach(System.out::println);
System.out.println("lvl 100");
gdrag.getFormattedLore(100).forEach(System.out::println);
System.out.println("lvl 150");
gdrag.getFormattedLore(150).forEach(System.out::println);
var attributes = RepoAPI.attributes().attributes().values();
for (var attribute : attributes) {
System.out.printf("%s -> %s%n", attribute.attributeId(), attribute.shardId());
}
var potions = RepoAPI.potions().getPotion("speed");
System.out.println(potions);
System.out.println(RepoAPI.mobs().getMob("WEAVER_SPIDER_MONSTER"));
System.out.println(RepoAPI.parents().getMainParent("LOOTING", 2));
System.out.println(RepoAPI.parents().getFamily("LOOTING", 2));
System.out.println(RepoAPI.items().getOverlay("DIRT"));
System.out.println(RepoAPI.pets().getOverlay("BEE", "LEGENDARY"));
});
new Scanner(System.in).nextLine();
}
public static class Impl implements RepoImplementation {
@Override
public Path getRepoPath() {
return Path.of("./run");
}
}
}