public interface PlayerProfile
| Modifier and Type | Method and Description |
|---|---|
void |
clearProperties()
Clears all properties on this profile
|
default boolean |
complete()
If this profile is not complete, then make the API call to complete it.
|
boolean |
complete(boolean textures)
If this profile is not complete, then make the API call to complete it.
|
boolean |
completeFromCache()
Like
complete(boolean) but will try only from cache, and not make network calls
Does not account for textures. |
UUID |
getId() |
String |
getName() |
Set<ProfileProperty> |
getProperties() |
boolean |
hasProperty(String property)
Check if the Profile has the specified property
|
default boolean |
hasTextures()
Whether or not this Profile has textures associated to it
|
boolean |
isComplete() |
default boolean |
removeProperties(Collection<ProfileProperty> properties)
Removes all properties in the collection
|
default boolean |
removeProperty(ProfileProperty property)
Removes a specific property from this profile
|
boolean |
removeProperty(String property)
Removes a specific property from this profile
|
UUID |
setId(UUID uuid)
Sets this profiles UUID
|
String |
setName(String name)
Sets this profiles Name
|
void |
setProperties(Collection<ProfileProperty> properties)
Sets multiple properties.
|
void |
setProperty(ProfileProperty property)
Sets a property.
|
String setName(@Nullable String name)
name - The new NameUUID setId(@Nullable UUID uuid)
uuid - The new UUID@Nonnull Set<ProfileProperty> getProperties()
boolean hasProperty(String property)
property - Property name to checkvoid setProperty(ProfileProperty property)
property - Property to set.void setProperties(Collection<ProfileProperty> properties)
properties - The properties to setboolean removeProperty(String property)
property - The property to removedefault boolean removeProperty(@Nonnull ProfileProperty property)
property - The property to removedefault boolean removeProperties(Collection<ProfileProperty> properties)
properties - The properties to removevoid clearProperties()
boolean isComplete()
boolean completeFromCache()
complete(boolean) but will try only from cache, and not make network calls
Does not account for textures.default boolean complete()
complete(boolean)}boolean complete(boolean textures)
textures - controls if we should fill the profile with texture propertiesdefault boolean hasTextures()
Copyright © 2021. All rights reserved.