public class PreLookupProfileEvent extends Event
Event.Result| Constructor and Description |
|---|
PreLookupProfileEvent(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperties(com.google.common.collect.Multimap<String,com.mojang.authlib.properties.Property> properties)
Deprecated.
will be removed with 1.13
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
String |
getName() |
com.google.common.collect.Multimap<String,com.mojang.authlib.properties.Property> |
getProperties()
Deprecated.
will be removed with 1.13
|
UUID |
getUUID()
If this value is left null by the completion of the event call, then the server will
trigger a call to the Mojang API to look up the UUID (Network Request), and subsequently, fire a
LookupProfileEvent |
void |
setProperties(com.google.common.collect.Multimap<String,com.mojang.authlib.properties.Property> properties)
Deprecated.
will be removed with 1.13
|
void |
setUUID(UUID uuid)
Sets the UUID for this player name.
|
static com.mojang.authlib.GameProfileRepository |
wrapProfileRepository(com.mojang.authlib.GameProfileRepository orig)
Deprecated.
will be removed with 1.13
|
callEvent, getEventName, isAsynchronous@Nullable public UUID getUUID()
LookupProfileEventpublic void setUUID(@Nullable UUID uuid)
uuid - the UUID to set on the GameProfile or null to reset@Deprecated @Nonnull public com.google.common.collect.Multimap<String,com.mojang.authlib.properties.Property> getProperties()
GameProfile@Deprecated public void setProperties(com.google.common.collect.Multimap<String,com.mojang.authlib.properties.Property> properties)
properties - the properties to set on the new profile@Deprecated public void addProperties(com.google.common.collect.Multimap<String,com.mojang.authlib.properties.Property> properties)
properties - the properties to add to the existing propertiespublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
@Deprecated public static com.mojang.authlib.GameProfileRepository wrapProfileRepository(com.mojang.authlib.GameProfileRepository orig)
Copyright © 2017. All rights reserved.