public interface Profile
| Modifier and Type | Method and Description |
|---|---|
static Profile |
create(org.bukkit.entity.HumanEntity player)
Creates a new profile instance
|
static Profile |
create(UUID uniqueId,
String name)
Creates a new profile instance
|
Optional<String> |
getName()
Gets the username associated with this profile
|
long |
getTimestamp()
Gets the timestamp when this Profile was created or last updated.
|
UUID |
getUniqueId()
Gets the unique id associated with this profile
|
@Nonnull static Profile create(@Nonnull UUID uniqueId, @Nullable String name)
uniqueId - the unique idname - the username@Nonnull static Profile create(org.bukkit.entity.HumanEntity player)
player - the player to create a profile for@Nonnull UUID getUniqueId()
@Nonnull Optional<String> getName()
long getTimestamp()
The returned value is a unix timestamp in milliseconds.
Copyright © 2022. All rights reserved.