public class PreLookupProfileEvent extends Event
Event.Result
Constructor and Description |
---|
PreLookupProfileEvent(String name) |
Modifier and Type | Method and 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()
LookupProfileEvent
public void setUUID(@Nullable UUID uuid)
uuid
- the UUID to set for the profile or null to resetpublic Set<ProfileProperty> getProfileProperties()
public void setProfileProperties(Set<ProfileProperty> properties)
properties
- The properties to addpublic void addProfileProperties(Set<ProfileProperty> properties)
properties
- The properties to addpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2021. All rights reserved.