Fix test texture
This commit is contained in:
parent
9dc046491f
commit
cb98afd9f3
|
@ -45,18 +45,20 @@ public class TestMultipartModel implements MultipartBakedModel {
|
||||||
Vector3f from;
|
Vector3f from;
|
||||||
Vector3f to;
|
Vector3f to;
|
||||||
Direction side;
|
Direction side;
|
||||||
|
String texture;
|
||||||
if (flag) {
|
if (flag) {
|
||||||
from = new Vector3f(0, 0, 0);
|
from = new Vector3f(0, 0, 0);
|
||||||
to = new Vector3f(16, 1, 16);
|
to = new Vector3f(16, 1, 16);
|
||||||
side = Direction.UP;
|
side = Direction.UP;
|
||||||
face = new ModelElementFace(null, 0, "block/iron_block", elementTexture);
|
texture = "block/iron_block";
|
||||||
} else {
|
} else {
|
||||||
from = new Vector3f(0, 0, 0);
|
from = new Vector3f(0, 0, 0);
|
||||||
to = new Vector3f(16, 16, 1);
|
to = new Vector3f(16, 16, 1);
|
||||||
side = Direction.SOUTH;
|
side = Direction.SOUTH;
|
||||||
face = new ModelElementFace(null, 0, "block/gold_block", elementTexture);
|
texture = "block/gold_block";
|
||||||
}
|
}
|
||||||
Sprite sprite = MinecraftClient.getInstance().getSpriteAtlas().getSprite(SpriteAtlasTexture.BLOCK_ATLAS_TEX);
|
face = new ModelElementFace(null, -1, "#texture", elementTexture);
|
||||||
|
Sprite sprite = MinecraftClient.getInstance().getSpriteAtlas().getSprite(texture);
|
||||||
ModelRotationContainer rotationContainer = new ModelRotationContainer() {};
|
ModelRotationContainer rotationContainer = new ModelRotationContainer() {};
|
||||||
return QUAD_FACTORY.bake(from, to, face, sprite, side, rotationContainer, null, false);
|
return QUAD_FACTORY.bake(from, to, face, sprite, side, rotationContainer, null, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue