From 1a74b0099b35ad7d88439c3d7bb1814a89dbd347 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 11 Apr 2024 03:58:51 +0100 Subject: [PATCH] rename FlatRenderer to SquareRenderer --- src/main/java/cc.fascinated/model/player/Skin.java | 4 ++-- .../skin/impl/{FlatRenderer.java => SquareRenderer.java} | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/main/java/cc.fascinated/service/skin/impl/{FlatRenderer.java => SquareRenderer.java} (91%) diff --git a/src/main/java/cc.fascinated/model/player/Skin.java b/src/main/java/cc.fascinated/model/player/Skin.java index 3358e47..4ab4fd9 100644 --- a/src/main/java/cc.fascinated/model/player/Skin.java +++ b/src/main/java/cc.fascinated/model/player/Skin.java @@ -4,7 +4,7 @@ import cc.fascinated.common.PlayerUtils; import cc.fascinated.config.Config; import cc.fascinated.exception.impl.BadRequestException; import cc.fascinated.service.skin.SkinRenderer; -import cc.fascinated.service.skin.impl.FlatRenderer; +import cc.fascinated.service.skin.impl.SquareRenderer; import cc.fascinated.service.skin.impl.IsometricHeadRenderer; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; @@ -95,7 +95,7 @@ public class Skin { /** * Head parts */ - HEAD(new FlatRenderer(8, 8, 8)), + HEAD(new SquareRenderer(8, 8, 8)), HEAD_ISOMETRIC(new IsometricHeadRenderer()); /** diff --git a/src/main/java/cc.fascinated/service/skin/impl/FlatRenderer.java b/src/main/java/cc.fascinated/service/skin/impl/SquareRenderer.java similarity index 91% rename from src/main/java/cc.fascinated/service/skin/impl/FlatRenderer.java rename to src/main/java/cc.fascinated/service/skin/impl/SquareRenderer.java index 51024ea..bdd3e92 100644 --- a/src/main/java/cc.fascinated/service/skin/impl/FlatRenderer.java +++ b/src/main/java/cc.fascinated/service/skin/impl/SquareRenderer.java @@ -10,7 +10,7 @@ import java.awt.geom.AffineTransform; import java.awt.image.BufferedImage; @Getter @Log4j2 -public class FlatRenderer extends SkinRenderer { +public class SquareRenderer extends SkinRenderer { /** * The x and y position of the part. @@ -23,13 +23,13 @@ public class FlatRenderer extends SkinRenderer { private final int widthAndHeight; /** - * Constructs a new {@link FlatRenderer}. + * Constructs a new {@link SquareRenderer}. * * @param x the x position of the part * @param y the y position of the part * @param widthAndHeight the width and height of the part */ - public FlatRenderer(int x, int y, int widthAndHeight) { + public SquareRenderer(int x, int y, int widthAndHeight) { this.x = x; this.y = y; this.widthAndHeight = widthAndHeight;