2014-04-18 22:14:02 +02:00
|
|
|
package me.libraryaddict.disguise.utilities;
|
|
|
|
|
2014-06-04 22:40:15 +02:00
|
|
|
import com.comphenix.protocol.wrappers.WrappedGameProfile;
|
2015-03-10 01:28:41 +01:00
|
|
|
import com.mojang.authlib.GameProfile;
|
|
|
|
import com.mojang.authlib.ProfileLookupCallback;
|
2014-04-18 22:14:02 +02:00
|
|
|
|
|
|
|
public class LibsProfileLookupCaller implements ProfileLookupCallback {
|
2015-08-03 00:39:44 +02:00
|
|
|
|
2014-06-04 22:40:15 +02:00
|
|
|
private WrappedGameProfile gameProfile;
|
2014-04-18 22:14:02 +02:00
|
|
|
|
2014-06-04 22:40:15 +02:00
|
|
|
public WrappedGameProfile getGameProfile() {
|
2014-04-18 22:14:02 +02:00
|
|
|
return gameProfile;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onProfileLookupFailed(GameProfile gameProfile, Exception arg1) {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onProfileLookupSucceeded(GameProfile profile) {
|
2014-06-04 22:40:15 +02:00
|
|
|
gameProfile = WrappedGameProfile.fromHandle(profile);
|
2014-04-18 22:14:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|