mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 07:54:43 +00:00
Implemented version change and build events for linked items
This commit is contained in:
1 parent
c56ad93a1b
commit
c372a031fb
3 files changed
+15
-2
No files matched your search
@@ -82,4 +82,8 @@ public interface IItemEvent extends ICustomNPCsEvent {
|
||||
|
||||
int getDuration();
|
||||
}
|
||||
|
||||
// onBreakEvent if Durability Expires or Consumed
|
||||
|
||||
// onRepairEvent
|
||||
}
|
||||
@@ -3,8 +3,13 @@ package noppes.npcs.api.event;
|
||||
public interface ILinkedItemEvent extends IItemEvent {
|
||||
|
||||
// Version Change Event
|
||||
interface VersionChangeEvent extends IItemEvent {
|
||||
|
||||
// onBreakEvent if Durability Expires or Consumed
|
||||
int getVersion();
|
||||
|
||||
// onRepairEvent
|
||||
int getPreviousVersion();
|
||||
}
|
||||
|
||||
interface BuildEvent extends IItemEvent {
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
import noppes.npcs.api.item.IItemStack;
|
||||
|
||||
public interface ILinkedItem {
|
||||
|
||||
IItemStack createStack();
|
||||
|
||||
int getId();
|
||||
|
||||
void setId(int id);
|
||||
|
||||
Reference in new issue
Block a user