mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-28 02:05:39 +00:00
Potential Fix to Usuable Type names
This commit is contained in:
1 parent
8da42e7b7c
commit
638c915965
4 files changed
+76
-10
No files matched your search
@@ -14,8 +14,21 @@ import noppes.npcs.janino.annotations.ScriptHook;
|
||||
*/
|
||||
public class JaninoNpcScript extends JaninoScript<JaninoNpcScript.Functions> {
|
||||
|
||||
/**
|
||||
* Default imports for NPC scripts.
|
||||
* These are automatically available in user code without explicit import statements.
|
||||
*/
|
||||
private static final String[] DEFAULT_IMPORTS = {
|
||||
"noppes.npcs.api.event.INpcEvent",
|
||||
"noppes.npcs.api.event.IProjectileEvent",
|
||||
"noppes.npcs.api.event.IAbilityEvent",
|
||||
"noppes.npcs.api.entity.ICustomNpc",
|
||||
"noppes.npcs.api.entity.IPlayer",
|
||||
"noppes.npcs.api.NpcAPI"
|
||||
};
|
||||
|
||||
public JaninoNpcScript() {
|
||||
super(Functions.class, null);
|
||||
super(Functions.class, DEFAULT_IMPORTS);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user