-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(inventory): Change Action class to interface
- Loading branch information
1 parent
f8316a9
commit 5919ef9
Showing
1 changed file
with
9 additions
and
2 deletions.
There are no files selected for viewing
11 changes: 9 additions & 2 deletions
11
.../bukkit/src/main/java/com/georgev22/library/minecraft/inventory/utils/actions/Action.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
||
} |