Added FastItemStack#unwrap again

This commit is contained in:
Auxilor
2021-08-04 14:27:45 +01:00
parent 027f9be194
commit 2ce96ab0b1
2 changed files with 12 additions and 0 deletions

View File

@@ -44,6 +44,13 @@ public interface FastItemStack {
*/
List<String> getLore();
/**
* Get the Bukkit ItemStack again.
*
* @return The ItemStack.
*/
ItemStack unwrap();
/**
* Wrap an ItemStack to create a FastItemStack.
*

View File

@@ -17,4 +17,9 @@ public abstract class EcoFastItemStack<T> implements FastItemStack {
this.handle = handle;
this.bukkit = bukkit;
}
@Override
public ItemStack unwrap() {
return this.getBukkit();
}
}