diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/DefaultEnumBaseᴶᴹˣ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/DefaultEnumBaseᴶᴹˣ.java index e55070c5..237a9da5 100644 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/DefaultEnumBaseᴶᴹˣ.java +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/DefaultEnumBaseᴶᴹˣ.java @@ -7,6 +7,8 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinStoreKeyʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnSpiderEgg注; import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInit注; import love.distributedrebirth.bassboonyd.DefaultEnumBaseʸᴰ; import love.distributedrebirth.bassboonyd.info.BãßBȍőnAnnotation注; import love.distributedrebirth.bassboonyd.info.BãßBȍőnAuthor注; @@ -19,6 +21,11 @@ public interface DefaultEnumBaseᴶᴹˣ boon) { + boon.toBBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(Ꝑŕḯṿª₮ḕ.GHOST_KEY_JMX, new HashMap<>()); + } + private static X buildJmxGhost(DefaultEnumBaseᴶᴹˣ boon, String name, X result) { boon.toBBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_MAP_OBJ(Ꝑŕḯṿª₮ḕ.GHOST_KEY_JMX).put(name, result); return result; @@ -51,11 +58,6 @@ public interface DefaultEnumBaseᴶᴹˣ jmxGhosts(BãßBȍőnCoffinʸᴰ BBC) { - Map result = BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_MAP_OBJ(Ꝑŕḯṿª₮ḕ.GHOST_KEY_JMX); - if (result == null) { - result = new HashMap<>(); - BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(Ꝑŕḯṿª₮ḕ.GHOST_KEY_JMX, result); - } - return result; + return BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_MAP_OBJ(Ꝑŕḯṿª₮ḕ.GHOST_KEY_JMX); } }