mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 09:12:22 +00:00
IActionListener Comments
This commit is contained in:
1 parent
41d4ca8c27
commit
1b76f1ab7e
3 files changed
+40
-38
No files matched your search
@@ -262,18 +262,18 @@ public class Action implements IAction {
|
||||
//////////////////////////////////////////////////
|
||||
// Listener
|
||||
|
||||
public IAction listenTo(String hook, Object object) {
|
||||
return listenTo(hook, manager.getOrCreateListener(object));
|
||||
}
|
||||
|
||||
public IAction listenTo(String hook, IActionListener listener) {
|
||||
return listenTo(listener.getOrCreateHook(hook));
|
||||
}
|
||||
|
||||
public IAction listenTo(ActionListener.Hook hook) {
|
||||
hook.schedule(this);
|
||||
return this;
|
||||
}
|
||||
// public IAction listenTo(String hook, Object object) {
|
||||
// return listenTo(hook, manager.getOrCreateListener(object));
|
||||
// }
|
||||
//
|
||||
// public IAction listenTo(String hook, IActionListener listener) {
|
||||
// return listenTo(listener.getOrCreateHook(hook));
|
||||
// }
|
||||
//
|
||||
// public IAction listenTo(ActionListener.Hook hook) {
|
||||
// hook.schedule(this);
|
||||
// return this;
|
||||
// }
|
||||
|
||||
///////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
Reference in new issue
Block a user