rename FlatRenderer to SquareRenderer

This commit is contained in:
Lee 2024-04-11 03:58:51 +01:00
parent 4f26110405
commit 1a74b0099b
2 changed files with 5 additions and 5 deletions

@ -4,7 +4,7 @@ import cc.fascinated.common.PlayerUtils;
import cc.fascinated.config.Config; import cc.fascinated.config.Config;
import cc.fascinated.exception.impl.BadRequestException; import cc.fascinated.exception.impl.BadRequestException;
import cc.fascinated.service.skin.SkinRenderer; 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 cc.fascinated.service.skin.impl.IsometricHeadRenderer;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
@ -95,7 +95,7 @@ public class Skin {
/** /**
* Head parts * Head parts
*/ */
HEAD(new FlatRenderer(8, 8, 8)), HEAD(new SquareRenderer(8, 8, 8)),
HEAD_ISOMETRIC(new IsometricHeadRenderer()); HEAD_ISOMETRIC(new IsometricHeadRenderer());
/** /**

@ -10,7 +10,7 @@ import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
@Getter @Log4j2 @Getter @Log4j2
public class FlatRenderer extends SkinRenderer { public class SquareRenderer extends SkinRenderer {
/** /**
* The x and y position of the part. * The x and y position of the part.
@ -23,13 +23,13 @@ public class FlatRenderer extends SkinRenderer {
private final int widthAndHeight; private final int widthAndHeight;
/** /**
* Constructs a new {@link FlatRenderer}. * Constructs a new {@link SquareRenderer}.
* *
* @param x the x position of the part * @param x the x position of the part
* @param y the y position of the part * @param y the y position of the part
* @param widthAndHeight the width and height 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.x = x;
this.y = y; this.y = y;
this.widthAndHeight = widthAndHeight; this.widthAndHeight = widthAndHeight;