mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 20:44:44 +00:00
Linked Item API methods
This commit is contained in:
1 parent
3c063d8bc1
commit
253ef73298
2 files changed
+24
-17
No files matched your search
@@ -16,23 +16,7 @@ import noppes.npcs.api.entity.ICustomNpc;
|
||||
import noppes.npcs.api.entity.IEntity;
|
||||
import noppes.npcs.api.entity.IPlayer;
|
||||
import noppes.npcs.api.gui.ICustomGui;
|
||||
import noppes.npcs.api.handler.IAbilityHandler;
|
||||
import noppes.npcs.api.handler.IActionManager;
|
||||
import noppes.npcs.api.handler.IAnimationHandler;
|
||||
import noppes.npcs.api.handler.IAuctionHandler;
|
||||
import noppes.npcs.api.handler.ICloneHandler;
|
||||
import noppes.npcs.api.handler.ICustomEffectHandler;
|
||||
import noppes.npcs.api.handler.IDialogHandler;
|
||||
import noppes.npcs.api.handler.IFactionHandler;
|
||||
import noppes.npcs.api.handler.IMagicHandler;
|
||||
import noppes.npcs.api.handler.INaturalSpawnsHandler;
|
||||
import noppes.npcs.api.handler.IPartyHandler;
|
||||
import noppes.npcs.api.handler.IProfileHandler;
|
||||
import noppes.npcs.api.handler.IQuestHandler;
|
||||
import noppes.npcs.api.handler.IRecipeHandler;
|
||||
import noppes.npcs.api.handler.IScriptHookHandler;
|
||||
import noppes.npcs.api.handler.ITelegraphHandler;
|
||||
import noppes.npcs.api.handler.ITransportHandler;
|
||||
import noppes.npcs.api.handler.*;
|
||||
import noppes.npcs.api.handler.data.IAnimation;
|
||||
import noppes.npcs.api.handler.data.IFrame;
|
||||
import noppes.npcs.api.handler.data.IFramePart;
|
||||
@@ -169,6 +153,8 @@ public abstract class AbstractNpcAPI {
|
||||
|
||||
public abstract IAnimationHandler getAnimations();
|
||||
|
||||
public abstract ILinkedItemHandler getLinkedItems();
|
||||
|
||||
/**
|
||||
* Get the script hook handler for registering custom hooks.
|
||||
* Addon mods can use this to register hooks that will appear in script editor GUIs.
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
import noppes.npcs.api.handler.data.ILinkedItem;
|
||||
import noppes.npcs.api.item.IItemStack;
|
||||
import noppes.npcs.controllers.data.LinkedItem;
|
||||
|
||||
public interface ILinkedItemHandler {
|
||||
ILinkedItem createItem(String name);
|
||||
|
||||
IItemStack createItemStack(int id);
|
||||
|
||||
void add(ILinkedItem linkedItem);
|
||||
|
||||
ILinkedItem remove(int id);
|
||||
|
||||
ILinkedItem get(int id);
|
||||
|
||||
boolean contains(int id);
|
||||
|
||||
boolean contains(ILinkedItem linkedItem);
|
||||
}
|
||||
Reference in new issue
Block a user