2024-04-17 21:06:43 +01:00
|
|
|
package xyz.mcutils.models.player;
|
|
|
|
|
|
|
|
import lombok.Getter;
|
2024-04-17 21:22:33 +01:00
|
|
|
import lombok.ToString;
|
2024-04-17 21:06:43 +01:00
|
|
|
import xyz.mcutils.models.CachedResponse;
|
|
|
|
|
|
|
|
import java.util.UUID;
|
|
|
|
|
2024-04-17 21:22:33 +01:00
|
|
|
@Getter @ToString
|
2024-04-17 21:06:43 +01:00
|
|
|
public class CachedPlayer extends CachedResponse {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The UUID of the player
|
|
|
|
*/
|
|
|
|
private UUID uniqueId;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The trimmed UUID of the player
|
|
|
|
*/
|
|
|
|
private String trimmedUniqueId;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The username of the player
|
|
|
|
*/
|
|
|
|
private String username;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The skin of the player, null if the
|
|
|
|
* player does not have a skin
|
|
|
|
*/
|
|
|
|
private Skin skin;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The cape of the player, null if the
|
|
|
|
* player does not have a cape
|
|
|
|
*/
|
|
|
|
private Cape cape;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The raw properties of the player
|
|
|
|
*/
|
|
|
|
private ProfileProperty[] rawProperties;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A profile property for the player.
|
|
|
|
*/
|
|
|
|
private static class ProfileProperty {
|
|
|
|
/**
|
|
|
|
* The name of the property.
|
|
|
|
*/
|
|
|
|
private String name;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The base64 value of the property.
|
|
|
|
*/
|
|
|
|
private String value;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether the property is signed.
|
|
|
|
*/
|
|
|
|
private boolean signed;
|
|
|
|
}
|
|
|
|
}
|