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