File tree Expand file tree Collapse file tree
modules/library/src/main/java/top/mrxiaom/pluginbase/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,14 +152,14 @@ protected static void init() {
152152 } catch (Throwable ignored ) {}
153153 }
154154
155- private static void add (String classType , String registry ) throws Throwable {
155+ public static void add (String classType , String registry ) throws Throwable {
156156 Class <?> type = Class .forName (classType );
157157 Field field = Registry .class .getDeclaredField (registry );
158158 Registry <?> object = (Registry <?>) field .get (null );
159159 registries .put (type .getName (), object );
160160 }
161161
162- private static <T extends Keyed > void add (Class <T > type , Registry <T > registry ) {
162+ public static <T extends Keyed > void add (Class <T > type , Registry <T > registry ) {
163163 registries .put (type .getName (), registry );
164164 }
165165
You can’t perform that action at this time.
0 commit comments