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.
|
void |
addProperties(com.google.common.collect.Multimap<String,com.mojang.authlib.properties.Property> properties) |
Deprecated.
will be removed with 1.13 use
addProfileProperties(Set) |
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
String |
getName() |
|
Set<ProfileProperty> |
getProfileProperties() |
|
com.google.common.collect.Multimap<String,com.mojang.authlib.properties.Property> |
getProperties() |
Deprecated.
will be removed with 1.13 Use
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 |
setProperties(com.google.common.collect.Multimap<String,com.mojang.authlib.properties.Property> properties) |
Deprecated.
will be removed with 1.13 Use
setProfileProperties(Set) |
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 reset@Deprecated @Nonnull public com.google.common.collect.Multimap<String,com.mojang.authlib.properties.Property> getProperties()
getProfileProperties()
PlayerProfile
@Deprecated public void setProperties(com.google.common.collect.Multimap<String,com.mojang.authlib.properties.Property> properties)
setProfileProperties(Set)
properties
- the properties to set on the new profile@Deprecated public void addProperties(com.google.common.collect.Multimap<String,com.mojang.authlib.properties.Property> properties)
addProfileProperties(Set)
properties
- the properties to add to the existing propertiespublic 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 © 2019. All rights reserved.