Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Asintotoo authored Jun 19, 2024
1 parent 9e5a6d8 commit 9cf0cbb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.asintoto</groupId>
<artifactId>Basic</artifactId>
<version>1.0.5</version>
<version>1.0.6</version>
<packaging>jar</packaging>

<name>Basic</name>
Expand Down
18 changes: 9 additions & 9 deletions src/main/java/com/asintoto/basic/menu/MenuDataType.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@
import org.bukkit.persistence.PersistentDataAdapterContext;
import org.bukkit.persistence.PersistentDataType;

public class MenuDataType <T extends Menu> implements PersistentDataType<T, T> {
public class MenuDataType implements PersistentDataType<Menu, Menu> {

@Override
public Class<T> getPrimitiveType() {
return null;
public Class<Menu> getPrimitiveType() {
return Menu.class;
}

@Override
public Class<T> getComplexType() {
return null;
public Class<Menu> 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();
Expand Down

0 comments on commit 9cf0cbb

Please sign in to comment.