mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 20:49:05 +00:00
Scripted player tick events are functional, GUI for player events is complete. Global player events run as they should now, just need to start implementing more of them.
This commit is contained in:
1 parent
6aa98aecf3
commit
1ee14920ff
26 files changed
+1223
-1091
No files matched your search
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by Fernflower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted;
|
||||
|
||||
public interface ITimers {
|
||||
void start(int var1, int var2, boolean var3);
|
||||
|
||||
void forceStart(int var1, int var2, boolean var3);
|
||||
|
||||
boolean has(int var1);
|
||||
|
||||
boolean stop(int var1);
|
||||
|
||||
void reset(int var1);
|
||||
|
||||
void clear();
|
||||
}
|
||||
@@ -62,7 +62,7 @@ public abstract class NpcAPI {
|
||||
return null;
|
||||
} else {
|
||||
try {
|
||||
Class c = Class.forName("noppes.npcs.api.wrapper.WrapperNpcAPI");
|
||||
Class c = Class.forName("noppes.npcs.scripted.wrapper.WrapperNpcAPI");
|
||||
instance = (NpcAPI) c.getMethod("Instance").invoke((Object) null);
|
||||
} catch (Exception var1) {
|
||||
var1.printStackTrace();
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
package noppes.npcs.scripted.event;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Event;
|
||||
import noppes.npcs.controllers.ScriptController;
|
||||
import noppes.npcs.scripted.NpcAPI;
|
||||
|
||||
public class CustomNPCsEvent extends Event {
|
||||
public final ScriptController API = ScriptController.Instance;
|
||||
public class CustomNPCsEvent extends Event{
|
||||
public final NpcAPI API = NpcAPI.Instance();
|
||||
|
||||
public CustomNPCsEvent() {
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user