public class PreLookupProfileEvent extends Event
Event.Result
Constructor | Description |
---|---|
PreLookupProfileEvent(java.lang.String name) |
Modifier and Type | Method | Description |
---|---|---|
void |
addProfileProperties(java.util.Set<ProfileProperty> properties) |
Adds any properties currently missing to the prepopulated properties set, replacing any that already were set.
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
java.lang.String |
getName() |
|
java.util.Set<ProfileProperty> |
getProfileProperties() |
|
java.util.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(java.util.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(java.util.UUID uuid) |
Sets the UUID for this player name.
|
callEvent, getEventName, isAsynchronous
public PreLookupProfileEvent(@Nonnull java.lang.String name)
@Nonnull public java.lang.String getName()
@Nullable public java.util.UUID getUUID()
LookupProfileEvent
public void setUUID(@Nullable java.util.UUID uuid)
uuid
- the UUID to set for the profile or null to resetpublic java.util.Set<ProfileProperty> getProfileProperties()
public void setProfileProperties(java.util.Set<ProfileProperty> properties)
properties
- The properties to addpublic void addProfileProperties(java.util.Set<ProfileProperty> properties)
properties
- The properties to addpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2019. All rights reserved.