Skip to content

Commit 4e5e7ea

Browse files
committed
UITexture.Builder#uv -> xy
1 parent 4b9e44b commit 4e5e7ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/cleanroommc/modularui/drawable/UITexture.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static UITexture icon(String name, int x, int y, int w, int h) {
2929
return UITexture.builder()
3030
.location(ICONS_LOCATION)
3131
.imageSize(256, 256)
32-
.uv(x, y, w, h)
32+
.xy(x, y, w, h)
3333
.name(name)
3434
.build();
3535
}
@@ -177,7 +177,7 @@ public static UITexture parseFromJson(JsonObject json) {
177177
if (mode2) {
178178
throw new JsonParseException("Tried to specify x, y, w, h and u0, v0, u1, v1!");
179179
}
180-
builder.uv(JsonHelper.getInt(json, 0, "x"),
180+
builder.xy(JsonHelper.getInt(json, 0, "x"),
181181
JsonHelper.getInt(json, 0, "y"),
182182
JsonHelper.getInt(json, builder.iw, "w", "width"),
183183
JsonHelper.getInt(json, builder.ih, "h", "height"));
@@ -310,7 +310,7 @@ public Builder fullImage() {
310310
* @param w width in pixels
311311
* @param h height in pixels
312312
*/
313-
public Builder uv(int x, int y, int w, int h) {
313+
public Builder xy(int x, int y, int w, int h) {
314314
this.mode = Mode.PIXEL;
315315
this.x = x;
316316
this.y = y;

0 commit comments

Comments
 (0)