From ac8f6bdbb3f82d01225e4ba53f600bd879f5e9e2 Mon Sep 17 00:00:00 2001 From: tueem Date: Mon, 14 Oct 2024 00:54:50 +0200 Subject: [PATCH] First basic data in API object --- .../net/tomatentum/marinara/Marinara.java | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/lib/src/main/java/net/tomatentum/marinara/Marinara.java b/lib/src/main/java/net/tomatentum/marinara/Marinara.java index 91b379d..04471b9 100644 --- a/lib/src/main/java/net/tomatentum/marinara/Marinara.java +++ b/lib/src/main/java/net/tomatentum/marinara/Marinara.java @@ -1,7 +1,22 @@ package net.tomatentum.marinara; +import net.tomatentum.marinara.registry.InteractionRegistry; +import net.tomatentum.marinara.wrapper.LibraryWrapper; + public class Marinara { - public static Marinara load() { - + + public static Marinara load(LibraryWrapper wrapper) { + InteractionRegistry registry = new InteractionRegistry(wrapper); + return new Marinara(registry); + } + + private InteractionRegistry registry; + + private Marinara(InteractionRegistry registry) { + this.registry = registry; + } + + public InteractionRegistry getRegistry() { + return registry; } }