diff --git a/Java-SDK/src/main/java/cc/restfulmc/sdk/exception/RestfulMCAPIException.java b/Java-SDK/src/main/java/cc/restfulmc/sdk/exception/RestfulMCAPIException.java index be1f08d..c926aa0 100644 --- a/Java-SDK/src/main/java/cc/restfulmc/sdk/exception/RestfulMCAPIException.java +++ b/Java-SDK/src/main/java/cc/restfulmc/sdk/exception/RestfulMCAPIException.java @@ -24,12 +24,16 @@ package cc.restfulmc.sdk.exception; import cc.restfulmc.sdk.client.RESTfulMCClient; +import cc.restfulmc.sdk.request.APIWebRequest; import com.google.gson.JsonObject; import lombok.Getter; import lombok.NonNull; import lombok.ToString; /** + * This exception is raised when an error + * occurs while making an {@link APIWebRequest}. + * * @author Braydon */ @Getter @ToString diff --git a/Java-SDK/src/main/java/cc/restfulmc/sdk/response/Player.java b/Java-SDK/src/main/java/cc/restfulmc/sdk/response/Player.java index 0eb2730..dbfa5e6 100644 --- a/Java-SDK/src/main/java/cc/restfulmc/sdk/response/Player.java +++ b/Java-SDK/src/main/java/cc/restfulmc/sdk/response/Player.java @@ -25,6 +25,8 @@ package cc.restfulmc.sdk.response; import lombok.*; +import java.util.Base64; +import java.util.Map; import java.util.UUID; /** @@ -46,6 +48,26 @@ public final class Player extends CacheableResponse { */ @NonNull private final String username; + /** + * The skin of this player. + */ + @NonNull private final Skin skin; + + /** + * The cape of this player, null if none. + */ + private final Cape cape; + + /** + * The raw profile properties of this player. + */ + @NonNull private final ProfileProperty[] properties; + + /** + * The profile actions this player has, null if none. + */ + private final ProfileAction[] profileActions; + /** * Is this player legacy? *
@@ -54,4 +76,137 @@ public final class Player extends CacheableResponse { *
*/ private final boolean legacy; + + /** + * A skin for a player. + */ + @AllArgsConstructor @Getter @EqualsAndHashCode(onlyExplicitlyIncluded = true) @ToString + public static class Skin { + /** + * The texture URL of the skin. + */ + @EqualsAndHashCode.Include @NonNull private final String url; + + /** + * The model of this skin. + */ + @NonNull private final SkinModel model; + + /** + * Is this skin legacy? + */ + private final boolean legacy; + + /** + * URLs for the parts of this skin. + */ + private final Map