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. |
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.
|
@Nullable String getName()
@NotNull String setName(@Nullable String name)
name - The new Name@Nullable UUID getId()
@Nullable UUID setId(@Nullable UUID uuid)
uuid - The new UUID@NotNull Set<ProfileProperty> getProperties()
boolean hasProperty(@Nullable
String property)
property - Property name to checkvoid setProperty(@NotNull
ProfileProperty property)
property - Property to set.void setProperties(@NotNull
Collection<ProfileProperty> properties)
properties - The properties to setboolean removeProperty(@Nullable
String property)
property - The property to removedefault boolean removeProperty(@NotNull
ProfileProperty property)
property - The property to removedefault boolean removeProperties(@NotNull
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 © 2020. All rights reserved.