Add #111: wrapper launch options and login result processing event
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user