From 68b6b0d85c29588792083a0d36e6a485139af1e9 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Thu, 23 Jun 2022 19:46:10 +0200 Subject: [PATCH] Trying to debug something (still a lot of errors in console) --- .../lib/paper/reflect/ReflectRegistry.java | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Paper/src/main/java/fr/pandacube/lib/paper/reflect/ReflectRegistry.java b/Paper/src/main/java/fr/pandacube/lib/paper/reflect/ReflectRegistry.java index f7bff46..09f2634 100644 --- a/Paper/src/main/java/fr/pandacube/lib/paper/reflect/ReflectRegistry.java +++ b/Paper/src/main/java/fr/pandacube/lib/paper/reflect/ReflectRegistry.java @@ -419,9 +419,19 @@ public class ReflectRegistry { public static final ReflectMethod getVisibleMap = wrapEx(() -> REFLECT.method("getVisibleMap")); } - public static final class PaperWorldConfig { - public static final ReflectClass REFLECT = wrapEx(() -> Reflect.ofClass("com.destroystokyo.paper.PaperWorldConfig")); - public static final ReflectField autoSavePeriod = wrapEx(() -> REFLECT.field("autoSavePeriod")); + public static final class WorldConfiguration { + public static final ReflectClass REFLECT = wrapEx(() -> Reflect.ofClass("io.papermc.paper.configuration.WorldConfiguration")); + public static final ReflectField chunks = wrapEx(() -> REFLECT.field("chunks")); + + public static final class Chunks { + public static final ReflectClass REFLECT = wrapEx(() -> Reflect.ofClass("io.papermc.paper.configuration.WorldConfiguration.Chunks")); + public static final ReflectField autoSavePeriod = wrapEx(() -> REFLECT.field("autoSaveInterval")); + } + } + + public static final class FallbackValue_Int { + public static final ReflectClass REFLECT = wrapEx(() -> Reflect.ofClass("io.papermc.paper.configuration.type.fallback.FallbackValue$Int")); + public static final ReflectMethod value = wrapEx(() -> REFLECT.method("value")); } }