public class PreLookupProfileEvent extends Event
Event.Result| Constructor | Description |
|---|---|
PreLookupProfileEvent(String name) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addProfileProperties(Set<ProfileProperty> properties) |
Adds any properties currently missing to the prepopulated properties set, replacing any that already were set.
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
String |
getName() |
|
Set<ProfileProperty> |
getProfileProperties() |
|
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 |
setProfileProperties(Set<ProfileProperty> properties) |
Clears any existing prepopulated properties and uses the supplied properties
Any property in this Set will be automatically prefilled on this Profile
|
void |
setUUID(UUID uuid) |
Sets the UUID for this player name.
|
callEvent, getEventName, isAsynchronous@Nullable public UUID getUUID()
LookupProfileEventpublic void setUUID(@Nullable UUID uuid)
uuid - the UUID to set for the profile or null to reset@NotNull public Set<ProfileProperty> getProfileProperties()
public void setProfileProperties(@NotNull Set<ProfileProperty> properties)
properties - The properties to addpublic void addProfileProperties(@NotNull Set<ProfileProperty> properties)
properties - The properties to add@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2020. All rights reserved.