Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
import hohserg.endothermic.builder.BakedQuadBuilder;
import hohserg.endothermic.format.AttributeRepresentation.*;
private BakedQuad waterQuad = new BakedQuadBuilder(DefaultVertexFormats.BLOCK)
.atlas(Minecraft.getMinecraft.getTextureMapBlocks.getAtlasSprite(FluidRegistry.WATER.getStill().toString))
.withAttribute(x_1, <x1>).withAttribute(y_1, <y1>).withAttribute(z_1, <z1>)
.withAttribute(x_2, <x1>).withAttribute(y_2, <y1>).withAttribute(z_2, <z1>)
.withAttribute(x_3, <x1>).withAttribute(y_3, <y1>).withAttribute(z_3, <z1>)
.withAttribute(x_4, <x1>).withAttribute(y_4, <y1>).withAttribute(z_4, <z1>)
.toBakedQuad();
val tessellator = Tessellator.getInstance();
val bufferbuilder = tessellator.getBuffer();
bufferbuilder.begin(7, DefaultVertexFormats.ITEM);
LightUtil.renderQuadColor(bufferbuilder, waterQuad, -1);
tessellator.draw();
Того глядишь, в проекте появятся другие задачи для либыЩас бы тащить либу для рендера текстуры жидкости )