Skip to content

Commit

Permalink
Re-add java 17 code
Browse files Browse the repository at this point in the history
  • Loading branch information
tr7zw committed Jan 9, 2024
1 parent b9d62ef commit af4caaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,80 +5,19 @@

import dev.tr7zw.skinlayers.versionless.ModBase;
import dev.tr7zw.skinlayers.versionless.util.Direction;
import lombok.AllArgsConstructor;
import lombok.Getter;

public class SolidPixelWrapper {

@AllArgsConstructor
public static class UV {
int u;
int v;

public int u() {
return u;
}

public int v() {
return v;
}
public record UV(int u, int v) {
}

@AllArgsConstructor
public static class Dimensions {
private final int width;
private final int height;
private final int depth;

public int width() {
return width;
}

public int height() {
return height;
}

public int depth() {
return depth;
}
public record Dimensions(int width, int height, int depth) {
}

@AllArgsConstructor
public static class Position {
private final float x;
private final float y;
private final float z;

public float x() {
return x;
}

public float y() {
return y;
}

public float z() {
return z;
}
public record Position(float x, float y, float z) {
}

@AllArgsConstructor
public static class VoxelPosition {
private final int x;
private final int y;
private final int z;

public int x() {
return x;
}

public int y() {
return y;
}

public int z() {
return z;
}
public record VoxelPosition(int x, int y, int z) {
}

private static final float pixelSize = 1f;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/skinlayers3d/lang/ja_jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
"text.skinlayers.fastrender.enable.tooltip": "3Dモデルを可能な限り速くレンダリングする",
"text.skinlayers.firstperson.voxelsize": "一人称のボクセルサイズ",
"text.skinlayers.firstperson.voxelsize.tooltip": "一人称視点の腕に適用するボクセルのサイズ"
}
}

0 comments on commit af4caaa

Please sign in to comment.