Add #111: wrapper launch options and login result processing event

This commit is contained in:
huangyuhui
2017-02-18 13:02:19 +08:00
parent 00143de42b
commit 9df351a2f0
4 changed files with 13 additions and 8 deletions

View File

@@ -17,6 +17,7 @@
*/
package org.jackhuang.hmcl.api.event.launch;
import org.jackhuang.hmcl.api.Wrapper;
import org.jackhuang.hmcl.api.event.SimpleEvent;
import org.jackhuang.hmcl.api.game.LaunchOptions;
@@ -31,9 +32,9 @@ import org.jackhuang.hmcl.api.game.LaunchOptions;
* @param LaunchOptions you can modify the value of this event to control the launching process.
* @author huang
*/
public class ProcessingLaunchOptionsEvent extends SimpleEvent<LaunchOptions> {
public class ProcessingLaunchOptionsEvent extends SimpleEvent<Wrapper<LaunchOptions>> {
public ProcessingLaunchOptionsEvent(Object source, LaunchOptions value) {
public ProcessingLaunchOptionsEvent(Object source, Wrapper<LaunchOptions> value) {
super(source, value);
}

View File

@@ -17,6 +17,7 @@
*/
package org.jackhuang.hmcl.api.event.launch;
import org.jackhuang.hmcl.api.Wrapper;
import org.jackhuang.hmcl.api.auth.UserProfileProvider;
import org.jackhuang.hmcl.api.event.SimpleEvent;
@@ -31,9 +32,9 @@ import org.jackhuang.hmcl.api.event.SimpleEvent;
* @param UserProfileProvider you can modify the value of this event to control the user profile.
* @author huangyuhui
*/
public class ProcessingLoginResultEvent extends SimpleEvent<UserProfileProvider> {
public class ProcessingLoginResultEvent extends SimpleEvent<Wrapper<UserProfileProvider>> {
public ProcessingLoginResultEvent(Object source, UserProfileProvider value) {
public ProcessingLoginResultEvent(Object source, Wrapper<UserProfileProvider> value) {
super(source, value);
}