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 |
complete(boolean textures,
boolean onlineMode)
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. |
boolean |
completeFromCache(boolean onlineMode)
Like
complete(boolean) but will try only from cache, and not make network calls
Does not account for textures. |
boolean |
completeFromCache(boolean lookupUUID,
boolean onlineMode)
Like
complete(boolean) but will try only from cache, and not make network calls
Does not account for textures. |
@Nullable UUID |
getId() |
@Nullable String |
getName() |
@NotNull Set<ProfileProperty> |
getProperties() |
boolean |
hasProperty(@Nullable 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(@NotNull Collection<ProfileProperty> properties)
Removes all properties in the collection
|
default boolean |
removeProperty(@NotNull ProfileProperty property)
Removes a specific property from this profile
|
boolean |
removeProperty(@Nullable String property)
Removes a specific property from this profile
|
@Nullable UUID |
setId(@Nullable UUID uuid)
Sets this profiles UUID
|
@NotNull String |
setName(@Nullable String name)
Sets this profiles Name
|
void |
setProperties(@NotNull Collection<ProfileProperty> properties)
Sets multiple properties.
|
void |
setProperty(@NotNull ProfileProperty property)
Sets a property.
|
@NotNull @NotNull String setName(@Nullable @Nullable String name)
name
- The new Name@Nullable @Nullable UUID setId(@Nullable @Nullable UUID uuid)
uuid
- The new UUID@NotNull @NotNull Set<ProfileProperty> getProperties()
boolean hasProperty(@Nullable @Nullable String property)
property
- Property name to checkvoid setProperty(@NotNull @NotNull ProfileProperty property)
property
- Property to set.void setProperties(@NotNull @NotNull Collection<ProfileProperty> properties)
properties
- The properties to setboolean removeProperty(@Nullable @Nullable String property)
property
- The property to removedefault boolean removeProperty(@NotNull @NotNull ProfileProperty property)
property
- The property to removedefault boolean removeProperties(@NotNull @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.boolean completeFromCache(boolean onlineMode)
complete(boolean)
but will try only from cache, and not make network calls
Does not account for textures.onlineMode
- Treat this as online mode or notboolean completeFromCache(boolean lookupUUID, boolean onlineMode)
complete(boolean)
but will try only from cache, and not make network calls
Does not account for textures.lookupUUID
- If only name is supplied, should we do a UUID lookuponlineMode
- Treat this as online mode or notdefault boolean complete()
complete(boolean)
}boolean complete(boolean textures)
textures
- controls if we should fill the profile with texture propertiesboolean complete(boolean textures, boolean onlineMode)
textures
- controls if we should fill the profile with texture propertiesonlineMode
- Treat this server as online mode or notdefault boolean hasTextures()
Copyright © 2021. All rights reserved.