Class SimpleQuestService
java.lang.Object
me.kzheart.klib.script.kether.core.SimpleQuestService
- All Implemented Interfaces:
AutoCloseable,QuestService<me.kzheart.klib.script.kether.core.SimpleQuestContext>
public final class SimpleQuestService
extends Object
implements QuestService<me.kzheart.klib.script.kether.core.SimpleQuestContext>, AutoCloseable
保留 Java getter 的方法和 Kotlin synthetic property 双源码入口。
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleQuestService(boolean toleranceParser) SimpleQuestService(Executor executor) SimpleQuestService(Executor executor, ScheduledExecutorService asyncExecutor, boolean toleranceParser) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getLocalizedText(String node, Object... params) 属性读取简写的解析器;未安装时属性读取语句失败。List<me.kzheart.klib.script.kether.core.SimpleQuestContext> getRunningQuests(String key) booleanme.kzheart.klib.script.kether.core.SimpleQuestContextnewContext(Quest quest) voidvoidstartQuest(me.kzheart.klib.script.kether.core.SimpleQuestContext context) voidterminateQuest(me.kzheart.klib.script.kether.core.SimpleQuestContext context)
-
Constructor Details
-
SimpleQuestService
public SimpleQuestService() -
SimpleQuestService
public SimpleQuestService(boolean toleranceParser) -
SimpleQuestService
-
SimpleQuestService
public SimpleQuestService(Executor executor, ScheduledExecutorService asyncExecutor, boolean toleranceParser)
-
-
Method Details
-
load
-
load
-
newContext
-
getRegistry
- Specified by:
getRegistryin interfaceQuestService<me.kzheart.klib.script.kether.core.SimpleQuestContext>
-
getQuest
- Specified by:
getQuestin interfaceQuestService<me.kzheart.klib.script.kether.core.SimpleQuestContext>
-
getQuestSettings
- Specified by:
getQuestSettingsin interfaceQuestService<me.kzheart.klib.script.kether.core.SimpleQuestContext>
-
getQuests
- Specified by:
getQuestsin interfaceQuestService<me.kzheart.klib.script.kether.core.SimpleQuestContext>
-
startQuest
public void startQuest(me.kzheart.klib.script.kether.core.SimpleQuestContext context) - Specified by:
startQuestin interfaceQuestService<me.kzheart.klib.script.kether.core.SimpleQuestContext>
-
terminateQuest
public void terminateQuest(me.kzheart.klib.script.kether.core.SimpleQuestContext context) - Specified by:
terminateQuestin interfaceQuestService<me.kzheart.klib.script.kether.core.SimpleQuestContext>
-
getRunningQuests
- Specified by:
getRunningQuestsin interfaceQuestService<me.kzheart.klib.script.kether.core.SimpleQuestContext>
-
getRunningQuests
- Specified by:
getRunningQuestsin interfaceQuestService<me.kzheart.klib.script.kether.core.SimpleQuestContext>
-
getExecutor
- Specified by:
getExecutorin interfaceQuestService<me.kzheart.klib.script.kether.core.SimpleQuestContext>
-
getAsyncExecutor
- Specified by:
getAsyncExecutorin interfaceQuestService<me.kzheart.klib.script.kether.core.SimpleQuestContext>
-
getLocalizedText
- Specified by:
getLocalizedTextin interfaceQuestService<me.kzheart.klib.script.kether.core.SimpleQuestContext>
-
isToleranceParser
public boolean isToleranceParser()- Specified by:
isToleranceParserin interfaceQuestService<me.kzheart.klib.script.kether.core.SimpleQuestContext>
-
getPropertyAccessor
Description copied from interface:QuestService属性读取简写的解析器;未安装时属性读取语句失败。- Specified by:
getPropertyAccessorin interfaceQuestService<me.kzheart.klib.script.kether.core.SimpleQuestContext>
-
setPropertyAccessor
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-