From 9cf0cbbedffb0865a7ca7e4002a9a85c9b4a5828 Mon Sep 17 00:00:00 2001 From: Asintoto <166311378+Asintotoo@users.noreply.github.com> Date: Wed, 19 Jun 2024 14:22:48 +0200 Subject: [PATCH] Add files via upload --- pom.xml | 2 +- .../com/asintoto/basic/menu/MenuDataType.java | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index 44f744d..cd7cb76 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.asintoto Basic - 1.0.5 + 1.0.6 jar Basic diff --git a/src/main/java/com/asintoto/basic/menu/MenuDataType.java b/src/main/java/com/asintoto/basic/menu/MenuDataType.java index 3bf8d55..9e705bc 100644 --- a/src/main/java/com/asintoto/basic/menu/MenuDataType.java +++ b/src/main/java/com/asintoto/basic/menu/MenuDataType.java @@ -3,26 +3,26 @@ import org.bukkit.persistence.PersistentDataAdapterContext; import org.bukkit.persistence.PersistentDataType; -public class MenuDataType implements PersistentDataType { +public class MenuDataType implements PersistentDataType { @Override - public Class getPrimitiveType() { - return null; + public Class getPrimitiveType() { + return Menu.class; } @Override - public Class getComplexType() { - return null; + public Class getComplexType() { + return Menu.class; } @Override - public T toPrimitive(T t, PersistentDataAdapterContext persistentDataAdapterContext) { - return null; + public Menu toPrimitive(Menu t, PersistentDataAdapterContext persistentDataAdapterContext) { + return t; } @Override - public T fromPrimitive(T t, PersistentDataAdapterContext persistentDataAdapterContext) { - return null; + public Menu fromPrimitive(Menu t, PersistentDataAdapterContext persistentDataAdapterContext) { + return t; } private static final MenuDataType INSTANCE = new MenuDataType();