1515import org .jetbrains .annotations .Nullable ;
1616
1717import org .mvplugins .multiverse .core .config .node .functions .NodeChangeCallback ;
18- import org .mvplugins .multiverse .core .config .node .functions .NodeLoadCallback ;
18+ import org .mvplugins .multiverse .core .config .node .functions .NodeValueCallback ;
1919import org .mvplugins .multiverse .core .config .node .functions .SenderNodeChangeCallback ;
2020import org .mvplugins .multiverse .core .config .node .functions .SenderNodeStringParser ;
2121import org .mvplugins .multiverse .core .config .node .functions .SenderNodeSuggester ;
@@ -56,7 +56,7 @@ public class ConfigNode<T> extends ConfigHeaderNode implements ValueNode<T> {
5656 protected @ Nullable NodeStringParser <T > stringParser ;
5757 protected @ Nullable NodeSerializer <T > serializer ;
5858 protected @ Nullable Function <T , Try <Void >> validator ;
59- protected @ Nullable NodeLoadCallback <T > onLoad ;
59+ protected @ Nullable NodeValueCallback <T > onLoad ;
6060 protected @ Nullable NodeChangeCallback <T > onLoadAndChange ;
6161 protected @ Nullable NodeChangeCallback <T > onChange ;
6262
@@ -71,7 +71,7 @@ protected ConfigNode(
7171 @ Nullable NodeStringParser <T > stringParser ,
7272 @ Nullable NodeSerializer <T > serializer ,
7373 @ Nullable Function <T , Try <Void >> validator ,
74- @ Nullable NodeLoadCallback <T > onLoad ,
74+ @ Nullable NodeValueCallback <T > onLoad ,
7575 @ Nullable NodeChangeCallback <T > onLoadAndChange ,
7676 @ Nullable NodeChangeCallback <T > onChange ) {
7777 super (path , comments );
@@ -237,7 +237,7 @@ public static class Builder<T, B extends ConfigNode.Builder<T, B>> extends Confi
237237 protected @ Nullable NodeStringParser <T > stringParser ;
238238 protected @ Nullable NodeSerializer <T > serializer ;
239239 protected @ Nullable Function <T , Try <Void >> validator ;
240- protected @ Nullable NodeLoadCallback <T > onLoad ;
240+ protected @ Nullable NodeValueCallback <T > onLoad ;
241241 protected @ Nullable NodeChangeCallback <T > onLoadAndChange ;
242242 protected @ Nullable NodeChangeCallback <T > onChange ;
243243
@@ -406,7 +406,7 @@ protected Builder(@NotNull String path, @NotNull Class<T> type) {
406406 * @return This builder.
407407 */
408408 @ ApiStatus .AvailableSince ("5.4" )
409- public @ NotNull B onLoad (@ NotNull NodeLoadCallback <T > onLoad ) {
409+ public @ NotNull B onLoad (@ NotNull NodeValueCallback <T > onLoad ) {
410410 this .onLoad = this .onLoad == null ? onLoad : this .onLoad .then (onLoad );
411411 return self ();
412412 }
0 commit comments