mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 18:24:44 +00:00
Update IScriptHookHandler.java
This commit is contained in:
1 parent
6fe282f3c6
commit
b90df20fc4
1 file changed
-8
@@ -1,7 +1,5 @@
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
import noppes.npcs.constants.ScriptContext;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -18,15 +16,9 @@ import java.util.List;
|
||||
* - "global_npc" - Global NPC scripts editor
|
||||
* - "recipe" - Recipe scripts editor
|
||||
* - "effect" - Custom effect scripts editor
|
||||
*
|
||||
* Note: Context constants are deprecated. Use ScriptContext.XXX.hookContext instead.
|
||||
*/
|
||||
public interface IScriptHookHandler {
|
||||
|
||||
void registerHook(ScriptContext context, String functionName);
|
||||
|
||||
void registerHooks(ScriptContext context, String... functionNames);
|
||||
|
||||
/**
|
||||
* Register a hook for a single context.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user