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)
Adds additional properties, without removing the original properties
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
String |
getName()
Name of the player to look up a profile for
|
com.google.common.collect.Multimap<String,com.mojang.authlib.properties.Property> |
getProperties()
Get the properties for this profile
|
UUID |
getUUID()
The UUID of the profile if it has already been provided by a plugin
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)
Completely replaces all Properties with the new provided properties
|
void |
setUUID(UUID uuid)
Sets the UUID for this player name.
|
static com.mojang.authlib.GameProfileRepository |
wrapProfileRepository(com.mojang.authlib.GameProfileRepository orig)
Wraps the Profile Repository so we can intercept all lookups
|
callEvent, getEventName, isAsynchronous@Nullable public UUID getUUID()
LookupProfileEventpublic void setUUID(@Nullable UUID uuid)
@Nonnull public com.google.common.collect.Multimap<String,com.mojang.authlib.properties.Property> getProperties()
public void setProperties(com.google.common.collect.Multimap<String,com.mojang.authlib.properties.Property> properties)
properties - public void addProperties(com.google.common.collect.Multimap<String,com.mojang.authlib.properties.Property> properties)
properties - public HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
public static com.mojang.authlib.GameProfileRepository wrapProfileRepository(com.mojang.authlib.GameProfileRepository orig)
Copyright © 2017. All rights reserved.