Added FastItemStack#unwrap again
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -17,4 +17,9 @@ public abstract class EcoFastItemStack<T> implements FastItemStack {
|
||||
this.handle = handle;
|
||||
this.bukkit = bukkit;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack unwrap() {
|
||||
return this.getBukkit();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user