Further improvements

This commit is contained in:
Martin Prokoph
2024-07-03 14:03:21 +02:00
parent db1f6b5896
commit 3d532a9c2f
3 changed files with 22 additions and 20 deletions

View File

@@ -22,7 +22,7 @@ public class PictureSignRenderer extends PictureRenderer {
PictureSignType type = getType(signBlockEntity, front);
super.render(signBlockEntity, type, PictureURLUtils.getLink(signBlockEntity, front), dimensions, getOffset(signBlockEntity, front, type), front, matrixStack, vertices, light, overlay);
}
private PictureDimensions getDimensions(String thirdLine, String forthLine) {
private static PictureDimensions getDimensions(String thirdLine, String forthLine) {
String[] scale = forthLine.split(":");
float width = 0;
float height = 0;
@@ -54,7 +54,7 @@ public class PictureSignRenderer extends PictureRenderer {
}
return new PictureDimensions(width, height, x, y, z, xRot, yRot, zRot);
}
private PictureOffset getOffset(BlockEntity blockEntity, boolean front, PictureSignType type) {
private static PictureOffset getOffset(BlockEntity blockEntity, boolean front, PictureSignType type) {
if (type.isAudio) return null;
float xOffset = 0.0F;
float zOffset = 0.0F;