public interface PlayerProfile
| Modifier and Type | Method | 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. |
java.util.UUID |
getId() |
|
java.lang.String |
getName() |
|
java.util.Set<ProfileProperty> |
getProperties() |
|
boolean |
hasProperty(java.lang.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(java.util.Collection<ProfileProperty> properties) |
Removes all properties in the collection
|
default boolean |
removeProperty(ProfileProperty property) |
Removes a specific property from this profile
|
boolean |
removeProperty(java.lang.String property) |
Removes a specific property from this profile
|
java.util.UUID |
setId(java.util.UUID uuid) |
Sets this profiles UUID
|
java.lang.String |
setName(java.lang.String name) |
Sets this profiles Name
|
void |
setProperties(java.util.Collection<ProfileProperty> properties) |
Sets multiple properties.
|
void |
setProperty(ProfileProperty property) |
Sets a property.
|
@Nullable java.lang.String getName()
java.lang.String setName(@Nullable
java.lang.String name)
name - The new Name@Nullable java.util.UUID getId()
java.util.UUID setId(@Nullable
java.util.UUID uuid)
uuid - The new UUID@Nonnull java.util.Set<ProfileProperty> getProperties()
boolean hasProperty(java.lang.String property)
property - Property name to checkvoid setProperty(ProfileProperty property)
property - Property to set.void setProperties(java.util.Collection<ProfileProperty> properties)
properties - The properties to setboolean removeProperty(java.lang.String property)
property - The property to removedefault boolean removeProperty(@Nonnull
ProfileProperty property)
property - The property to removedefault boolean removeProperties(java.util.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 © 2018. All rights reserved.