Batch 9-slice quads in DrawableResource (#1082)

This commit is contained in:
slprime authored and GitHub committed 2026-10-19 15:47:52 +03:00
1 parent 7163630cb1
commit e2a2d2a9df
5 files changed
+145 -125

No files matched your search

@@ -21,11 +21,15 @@ public class DrawableBuilder {
private int sliceBottom = 0;
public DrawableBuilder(String resourceLocation, int u, int v, int width, int height) {
this(new ResourceLocation(resourceLocation), u, v, width, height);
}
public DrawableBuilder(ResourceLocation resource, int u, int v, int width, int height) {
this.u = u;
this.v = v;
this.width = width;
this.height = height;
this.resourceLocation = new ResourceLocation(resourceLocation);
this.resourceLocation = resource;
}
public DrawableBuilder setTextureSize(int width, int height) {