Class SimpleQuestLoader
java.lang.Object
me.kzheart.klib.script.kether.core.SimpleQuestLoader
- All Implemented Interfaces:
QuestLoader
用于 `def name = { ... }` Kether 源码的默认加载器。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<C extends QuestContext>
Questload(QuestService<C> service, String id, byte[] bytes, List<String> namespace) <C extends QuestContext>
Questprotected BlockReadernewBlockReader(char[] content, QuestService<?> service, List<String> namespace) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.kzheart.klib.script.kether.core.QuestLoader
load
-
Constructor Details
-
SimpleQuestLoader
public SimpleQuestLoader()
-
-
Method Details
-
load
public <C extends QuestContext> Quest load(QuestService<C> service, String id, Path path, List<String> namespace) throws IOException - Specified by:
loadin interfaceQuestLoader- Throws:
IOException
-
load
public <C extends QuestContext> Quest load(QuestService<C> service, String id, byte[] bytes, List<String> namespace) - Specified by:
loadin interfaceQuestLoader
-
newBlockReader
protected BlockReader newBlockReader(char[] content, QuestService<?> service, List<String> namespace)
-