Skip to content

Commit

Permalink
feat(inventory): Change Action class to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeV220 committed Jul 2, 2023
1 parent f8316a9 commit 5919ef9
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
package com.georgev22.library.minecraft.inventory.utils.actions;

import com.georgev22.library.exceptions.ActionRunException;
import com.georgev22.library.maps.ObjectMap;
import org.bukkit.OfflinePlayer;

public abstract class Action {
import java.util.List;

public abstract void runAction(OfflinePlayer offlinePlayer) throws ActionRunException;
public interface Action {

void runAction(OfflinePlayer offlinePlayer) throws ActionRunException;

String name();

List<ObjectMap.Pair<String, List<Object>>> data();

}

0 comments on commit 5919ef9

Please sign in to comment.