public final class GameProfileRequestEvent extends Object
PreLoginEvent in
order to set up the game profile for the user. This can be used to configure a custom profile for
a user, i.e. skin replacement.| Constructor and Description |
|---|
GameProfileRequestEvent(InboundConnection connection,
GameProfile originalProfile,
boolean onlineMode)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
InboundConnection |
getConnection() |
GameProfile |
getGameProfile()
Returns the game profile that will be used to initialize the connection with.
|
GameProfile |
getOriginalProfile() |
String |
getUsername() |
boolean |
isOnlineMode() |
void |
setGameProfile(@Nullable GameProfile gameProfile)
Sets the game profile to use for this connection.
|
String |
toString() |
public GameProfileRequestEvent(InboundConnection connection, GameProfile originalProfile, boolean onlineMode)
connection - the connection connecting to the proxyoriginalProfile - the original GameProfile for the useronlineMode - whether or not the user connected in online or offline modepublic InboundConnection getConnection()
public String getUsername()
public GameProfile getOriginalProfile()
public boolean isOnlineMode()
public GameProfile getGameProfile()
GameProfilepublic void setGameProfile(@Nullable GameProfile gameProfile)
gameProfile - the profile for this connection, null uses the original profile