This commit is contained in:
Lee 2024-04-08 06:21:53 +01:00
parent 29c842aaf8
commit 1773ec7d9c
7 changed files with 14 additions and 11 deletions

@ -1,8 +1,8 @@
package cc.fascinated.controller;
import cc.fascinated.model.player.Player;
import cc.fascinated.model.player.Skin;
import cc.fascinated.service.PlayerService;
import cc.fascinated.service.player.model.Player;
import cc.fascinated.service.player.model.Skin;
import cc.fascinated.service.player.PlayerService;
import cc.fascinated.util.PlayerUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.CacheControl;

@ -1,8 +1,8 @@
package cc.fascinated.service.mojang.model;
import cc.fascinated.Main;
import cc.fascinated.model.player.Cape;
import cc.fascinated.model.player.Skin;
import cc.fascinated.service.player.model.Cape;
import cc.fascinated.service.player.model.Skin;
import cc.fascinated.util.Tuple;
import cc.fascinated.util.UUIDUtils;
import com.google.gson.JsonObject;

@ -1,6 +1,6 @@
package cc.fascinated.service;
package cc.fascinated.service.player;
import cc.fascinated.model.player.Player;
import cc.fascinated.service.player.model.Player;
import cc.fascinated.service.mojang.MojangAPIService;
import cc.fascinated.service.mojang.model.MojangProfile;
import cc.fascinated.service.mojang.model.MojangUsernameToUuid;

@ -1,4 +1,4 @@
package cc.fascinated.model.player;
package cc.fascinated.service.player.model;
import com.google.gson.JsonObject;
import lombok.AllArgsConstructor;

@ -1,4 +1,4 @@
package cc.fascinated.model.player;
package cc.fascinated.service.player.model;
import cc.fascinated.service.mojang.model.MojangProfile;
import cc.fascinated.util.Tuple;

@ -1,4 +1,4 @@
package cc.fascinated.model.player;
package cc.fascinated.service.player.model;
import cc.fascinated.config.Config;
import com.fasterxml.jackson.annotation.JsonProperty;
@ -28,6 +28,9 @@ public class Skin {
*/
private final Model model;
/**
* The part URLs of the skin
*/
@JsonProperty("parts")
private final Map<String, String> partUrls = new HashMap<>();

@ -1,7 +1,7 @@
package cc.fascinated.util;
import cc.fascinated.Main;
import cc.fascinated.model.player.Skin;
import cc.fascinated.service.player.model.Skin;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.SneakyThrows;
import lombok.experimental.UtilityClass;