rename FlatRenderer to SquareRenderer
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Failing after 14s
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Failing after 14s
This commit is contained in:
parent
4f26110405
commit
1a74b0099b
@ -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());
|
||||
|
||||
/**
|
||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user