-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCheckChunk.java
More file actions
17 lines (16 loc) · 763 Bytes
/
Copy pathCheckChunk.java
File metadata and controls
17 lines (16 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import java.lang.reflect.Method;
import java.net.URL;
import java.net.URLClassLoader;
import java.io.File;
public class CheckChunk {
public static void main(String[] args) throws Exception {
File jarFile = new File("C:\\Users\\MrLogiousBanana\\.gradle\\caches\\fabric-loom\\1.21.1\\net.fabricmc.yarn.1_21_1.1.21.1+build.3-v2\\minecraft-project-@-merged-named.jar");
URLClassLoader cl = new URLClassLoader(new URL[]{jarFile.toURI().toURL()}, null);
Class<?> chunkClass = cl.loadClass("net.minecraft.world.chunk.Chunk");
for (Method m : chunkClass.getMethods()) {
if (m.getName().equals("setBlockState") || m.getName().equals("method_12010")) {
System.out.println(m);
}
}
}
}