From f011ec513a90fd1cbe56b960acd7488e96c320aa Mon Sep 17 00:00:00 2001 From: tueem Date: Mon, 14 Oct 2024 00:54:29 +0200 Subject: [PATCH] change name of add method as it makes sense --- .../net/tomatentum/marinara/registry/InteractionRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java b/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java index 59ed25c..852676f 100644 --- a/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java +++ b/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java @@ -17,7 +17,7 @@ public class InteractionRegistry { wrapper.subscribeInteractions(this::handle); } - public void registerInteractions(InteractionHandler interactionHandler) { + public void addInteractions(InteractionHandler interactionHandler) { for (Method method : interactionHandler.getClass().getMethods()) { interactionMethods.add(InteractionMethod.create(method, interactionHandler, wrapper)); }