private void renderAirParticle(float particleProgress) {
int xStart = (width - xSize) / 2;
int yStart = (height - ySize) / 2;
float x = xStart + 117F;
float y = yStart + 50.5F;
if (particleProgress < 0.5F) {
y += particleProgress * 56;
} else if (particleProgress < 0.7F) {
y += 28F;
x -= (particleProgress - 0.5F) * 90;
} else {
y += 28F;
x -= 18;
y -= (particleProgress - 0.7F) * 70;
}
BufferBuilder wr = Tessellator.getInstance().getBuffer();
GL11.glPointSize(5);
wr.begin(GL11.GL_POINTS, DefaultVertexFormats.POSITION);
wr.pos(x, y, zLevel).endVertex();
Tessellator.getInstance().draw();
}
GuiChargingStation.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:pnc-repressurized
作者:
评论列表
文章目录