2022-11-23 23:59:01 -06:00
|
|
|
package noppes.npcs.controllers.data;
|
2021-09-30 00:56:49 -05:00
|
|
|
|
|
|
|
|
import cpw.mods.fml.common.eventhandler.Event;
|
2022-11-23 23:59:01 -06:00
|
|
|
import noppes.npcs.controllers.ScriptContainer;
|
2021-09-30 00:56:49 -05:00
|
|
|
|
2023-01-12 21:33:06 -05:00
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
2021-09-30 00:56:49 -05:00
|
|
|
public interface IScriptHandler {
|
2023-07-13 13:56:32 -05:00
|
|
|
void callScript(String hookName, Event event);
|
2021-09-30 00:56:49 -05:00
|
|
|
|
|
|
|
|
boolean isClient();
|
|
|
|
|
|
|
|
|
|
boolean getEnabled();
|
|
|
|
|
|
2023-07-13 13:56:32 -05:00
|
|
|
void setEnabled(boolean enabled);
|
2021-09-30 00:56:49 -05:00
|
|
|
|
|
|
|
|
String getLanguage();
|
|
|
|
|
|
2023-07-13 13:56:32 -05:00
|
|
|
void setLanguage(String language);
|
2021-09-30 00:56:49 -05:00
|
|
|
|
2023-02-19 16:22:28 -06:00
|
|
|
void setScripts(List<ScriptContainer> list);
|
|
|
|
|
|
2021-12-01 15:31:05 -06:00
|
|
|
List<ScriptContainer> getScripts();
|
2021-09-30 00:56:49 -05:00
|
|
|
|
|
|
|
|
String noticeString();
|
|
|
|
|
|
|
|
|
|
Map<Long, String> getConsoleText();
|
|
|
|
|
|
|
|
|
|
void clearConsole();
|
|
|
|
|
}
|