Class AddConfigurationTaskEvent
java.lang.Object
org.bukkit.event.Event
moe.caramel.daydream.event.configuration.ConfigurationEvent
moe.caramel.daydream.event.configuration.AddConfigurationTaskEvent
플레이어가 구성 단계에 진입 후, 작업을 추가할 때 호출되는 이벤트
레지스트리 전송 이전에 호출됩니다.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class moe.caramel.daydream.event.configuration.ConfigurationEvent
connection
-
Constructor Summary
ConstructorsConstructorDescriptionAddConfigurationTaskEvent
(PlayerConfigurationConnection connection, AddConfigurationTaskEvent.TaskRegistry registry) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
void
registerTask
(Key key, ConfigurationTask task) 테스크를 등록합니다.Methods inherited from class moe.caramel.daydream.event.configuration.ConfigurationEvent
getConnection
Methods inherited from class org.bukkit.event.Event
callEvent, getEventContext, getEventName, isAsynchronous, isSupportInterrupt
-
Constructor Details
-
AddConfigurationTaskEvent
@Internal public AddConfigurationTaskEvent(PlayerConfigurationConnection connection, AddConfigurationTaskEvent.TaskRegistry registry)
-
-
Method Details
-
registerTask
테스크를 등록합니다.- Parameters:
key
- 테스크의 키task
- 실행할 작업- Throws:
IllegalArgumentException
- 이미 등록된 테스크를 등록하는 경우 던져집니다.
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-