Interface GameProfileRequestEvent
-
- All Superinterfaces:
Event
- All Known Implementing Classes:
GameProfileRequestEventImpl
public interface GameProfileRequestEvent extends Event
This event is fired after thePreLoginEventImplin 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InboundConnectionconnection()GameProfilegameProfile()Returns the game profile that will be used to initialize the connection with.GameProfileinitialProfile()booleanisOnlineMode()voidsetGameProfile(@Nullable GameProfile gameProfile)Sets the game profile to use for this connection.Stringusername()
-
-
-
Method Detail
-
connection
InboundConnection connection()
-
username
String username()
-
initialProfile
GameProfile initialProfile()
-
isOnlineMode
boolean isOnlineMode()
-
gameProfile
GameProfile gameProfile()
Returns the game profile that will be used to initialize the connection with. Should no profile be currently specified, the one generated by the proxy (for offline mode) or retrieved from the Mojang session servers (for online mode) will be returned instead.- Returns:
- the user's
GameProfile
-
setGameProfile
void setGameProfile(@Nullable GameProfile gameProfile)
Sets the game profile to use for this connection.- Parameters:
gameProfile- the profile for this connection,nulluses the original profile
-
-