From dd2ce094d2ad3a6068ff4e2f90e0296bfcab9761 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Tue, 9 Apr 2024 01:46:42 -0400 Subject: [PATCH] Add very basic Java MC server impl --- src/main/java/cc/fascinated/controller/PlayerController.java | 2 +- src/main/java/cc/fascinated/model/mojang/MojangProfile.java | 4 ++-- src/main/java/cc/fascinated/model/player/Player.java | 2 +- src/main/java/cc/fascinated/model/player/Skin.java | 2 +- src/main/java/cc/fascinated/service/MojangAPIService.java | 2 +- src/main/java/cc/fascinated/service/PlayerService.java | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/cc/fascinated/controller/PlayerController.java b/src/main/java/cc/fascinated/controller/PlayerController.java index 2dd5dbf..52bc8ec 100644 --- a/src/main/java/cc/fascinated/controller/PlayerController.java +++ b/src/main/java/cc/fascinated/controller/PlayerController.java @@ -1,11 +1,11 @@ package cc.fascinated.controller; +import cc.fascinated.common.PlayerUtils; import cc.fascinated.model.player.Player; import cc.fascinated.model.player.Skin; import cc.fascinated.model.response.impl.InvalidPartResponse; import cc.fascinated.model.response.impl.PlayerNotFoundResponse; import cc.fascinated.service.PlayerService; -import cc.fascinated.common.PlayerUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.CacheControl; import org.springframework.http.MediaType; diff --git a/src/main/java/cc/fascinated/model/mojang/MojangProfile.java b/src/main/java/cc/fascinated/model/mojang/MojangProfile.java index 2c487c8..d10f97d 100644 --- a/src/main/java/cc/fascinated/model/mojang/MojangProfile.java +++ b/src/main/java/cc/fascinated/model/mojang/MojangProfile.java @@ -1,10 +1,10 @@ package cc.fascinated.model.mojang; import cc.fascinated.Main; -import cc.fascinated.model.player.Cape; -import cc.fascinated.model.player.Skin; import cc.fascinated.common.Tuple; import cc.fascinated.common.UUIDUtils; +import cc.fascinated.model.player.Cape; +import cc.fascinated.model.player.Skin; import com.google.gson.JsonObject; import lombok.AllArgsConstructor; import lombok.Getter; diff --git a/src/main/java/cc/fascinated/model/player/Player.java b/src/main/java/cc/fascinated/model/player/Player.java index 4660ae5..021560e 100644 --- a/src/main/java/cc/fascinated/model/player/Player.java +++ b/src/main/java/cc/fascinated/model/player/Player.java @@ -1,8 +1,8 @@ package cc.fascinated.model.player; -import cc.fascinated.model.mojang.MojangProfile; import cc.fascinated.common.Tuple; import cc.fascinated.common.UUIDUtils; +import cc.fascinated.model.mojang.MojangProfile; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Getter; diff --git a/src/main/java/cc/fascinated/model/player/Skin.java b/src/main/java/cc/fascinated/model/player/Skin.java index bb27d6c..80206c4 100644 --- a/src/main/java/cc/fascinated/model/player/Skin.java +++ b/src/main/java/cc/fascinated/model/player/Skin.java @@ -1,7 +1,7 @@ package cc.fascinated.model.player; -import cc.fascinated.config.Config; import cc.fascinated.common.PlayerUtils; +import cc.fascinated.config.Config; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.gson.JsonObject; diff --git a/src/main/java/cc/fascinated/service/MojangAPIService.java b/src/main/java/cc/fascinated/service/MojangAPIService.java index 56982c4..54c6330 100644 --- a/src/main/java/cc/fascinated/service/MojangAPIService.java +++ b/src/main/java/cc/fascinated/service/MojangAPIService.java @@ -1,8 +1,8 @@ package cc.fascinated.service; +import cc.fascinated.common.WebRequest; import cc.fascinated.model.mojang.MojangProfile; import cc.fascinated.model.mojang.MojangUsernameToUuid; -import cc.fascinated.common.WebRequest; import lombok.extern.log4j.Log4j2; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; diff --git a/src/main/java/cc/fascinated/service/PlayerService.java b/src/main/java/cc/fascinated/service/PlayerService.java index 2ec5909..e24fb69 100644 --- a/src/main/java/cc/fascinated/service/PlayerService.java +++ b/src/main/java/cc/fascinated/service/PlayerService.java @@ -1,9 +1,9 @@ package cc.fascinated.service; +import cc.fascinated.common.UUIDUtils; import cc.fascinated.model.mojang.MojangProfile; import cc.fascinated.model.mojang.MojangUsernameToUuid; import cc.fascinated.model.player.Player; -import cc.fascinated.common.UUIDUtils; import lombok.extern.log4j.Log4j2; import net.jodah.expiringmap.ExpirationPolicy; import net.jodah.expiringmap.ExpiringMap;