Added method in ReflectRegistry

This commit is contained in:
Marc Baloup 2022-06-26 19:48:23 +02:00
parent 6353bf8dba
commit bcf532aeba
Signed by: marcbal
GPG Key ID: BBC0FE3ABC30B893

View File

@ -182,6 +182,7 @@ public class ReflectRegistry {
public static final class ChunkStorage {
public static final ClassMapping MAPPING = wrapEx(() -> NMSReflect.mojClass("net.minecraft.world.level.chunk.storage.ChunkStorage"));
public static final ReflectMethod<?> read = wrapEx(() -> MAPPING.mojMethod("read", ChunkPos.MAPPING));
public static final ReflectMethod<?> readSync = wrapEx(() -> MAPPING.runtimeReflect().method("readSync", ChunkPos.MAPPING.runtimeReflect().get())); // spigot/paper method
}