Class BaseHandler
-
- All Implemented Interfaces:
-
com.skillw.pouvoir.api.plugin.map.component.Keyable
,com.skillw.pouvoir.api.plugin.map.component.Registrable
,kotlin.Comparable
public abstract class BaseHandler<T extends BaseTrigger> implements Registrable<String>, Comparable<BaseHandler<?>>
Glom
-
-
Constructor Summary
Constructors Constructor Description BaseHandler(String key, String triggers, Integer priority)
-
Method Summary
Modifier and Type Method Description String
getKey()
Key final Array<out String>
getTriggers()
final Integer
getPriority()
abstract Unit
handle(T trigger)
处理触发器 Unit
register()
注册 final Unit
unregister()
注销 Integer
compareTo(BaseHandler<?> other)
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
-
-
Method Detail
-
getTriggers
final Array<out String> getTriggers()
-
getPriority
final Integer getPriority()
-
unregister
final Unit unregister()
注销
-
compareTo
Integer compareTo(BaseHandler<?> other)
-
-
-
-