本文整理汇总了Java中net.minecraft.client.renderer.GlStateManager.callList方法的典型用法代码示例。如果您正苦于以下问题:Java GlStateManager.callList方法的具体用法?Java GlStateManager.callList怎么用?Java GlStateManager.callList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.client.renderer.GlStateManager
的用法示例。
在下文中一共展示了GlStateManager.callList方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: renderGlList
import net.minecraft.client.renderer.GlStateManager; //导入方法依赖的package包/类
public void renderGlList()
{
Entity entity = this.mc.getRenderViewEntity();
double d0 = entity.prevPosX + (entity.posX - entity.prevPosX) * (double)this.partialTicks;
double d1 = entity.prevPosY + (entity.posY - entity.prevPosY) * (double)this.partialTicks;
double d2 = entity.prevPosZ + (entity.posZ - entity.prevPosZ) * (double)this.partialTicks;
double d3 = (double)((float)(this.cloudTickCounter - this.cloudTickCounterUpdate) + this.partialTicks);
float f = (float)(d0 - this.cloudPlayerX + d3 * 0.03D);
float f1 = (float)(d1 - this.cloudPlayerY);
float f2 = (float)(d2 - this.cloudPlayerZ);
GlStateManager.pushMatrix();
if (this.renderFancy)
{
GlStateManager.translate(-f / 12.0F, -f1, -f2 / 12.0F);
}
else
{
GlStateManager.translate(-f, -f1, -f2);
}
GlStateManager.callList(this.glListClouds);
GlStateManager.popMatrix();
GlStateManager.resetColor();
}
示例2: renderGlList
import net.minecraft.client.renderer.GlStateManager; //导入方法依赖的package包/类
public void renderGlList()
{
Entity entity = this.mc.getRenderViewEntity();
double d0 = entity.prevPosX + (entity.posX - entity.prevPosX) * (double)this.partialTicks;
double d1 = entity.prevPosY + (entity.posY - entity.prevPosY) * (double)this.partialTicks;
double d2 = entity.prevPosZ + (entity.posZ - entity.prevPosZ) * (double)this.partialTicks;
double d3 = (double)((float)(this.cloudTickCounter - this.updateCloudTickCounter) + this.partialTicks);
float f = (float)(d0 - this.updatePlayerX + d3 * 0.03D);
float f1 = (float)(d1 - this.updatePlayerY);
float f2 = (float)(d2 - this.updatePlayerZ);
GlStateManager.pushMatrix();
if (this.renderFancy)
{
GlStateManager.translate(-f / 12.0F, -f1, -f2 / 12.0F);
}
else
{
GlStateManager.translate(-f, -f1, -f2);
}
GlStateManager.callList(this.glListClouds);
GlStateManager.popMatrix();
GlStateManager.resetColor();
}
示例3: renderWithRotation
import net.minecraft.client.renderer.GlStateManager; //导入方法依赖的package包/类
@Override
public void renderWithRotation(float scale)
{
if (!this.isHidden)
{
if (this.showModel)
{
if (!this.compiled)
{
this.compileDisplayList(scale);
}
GlStateManager.pushMatrix();
GlStateManager.translate(this.rotationPointX * scale, this.rotationPointY * scale, this.rotationPointZ * scale);
GlStateManager.scale(scaleX, scaleY, scaleZ);
if (this.rotateAngleY != 0.0F)
{
GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F);
}
if (this.rotateAngleX != 0.0F)
{
GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F);
}
if (this.rotateAngleZ != 0.0F)
{
GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F);
}
GlStateManager.callList(this.displayList);
GlStateManager.popMatrix();
}
}
}
示例4: renderWithRotation
import net.minecraft.client.renderer.GlStateManager; //导入方法依赖的package包/类
public void renderWithRotation(float p_78791_1_)
{
if (!this.isHidden)
{
if (this.showModel)
{
if (!this.compiled)
{
this.compileDisplayList(p_78791_1_);
}
GlStateManager.pushMatrix();
GlStateManager.translate(this.rotationPointX * p_78791_1_, this.rotationPointY * p_78791_1_, this.rotationPointZ * p_78791_1_);
if (this.rotateAngleY != 0.0F)
{
GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F);
}
if (this.rotateAngleX != 0.0F)
{
GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F);
}
if (this.rotateAngleZ != 0.0F)
{
GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F);
}
GlStateManager.callList(this.displayList);
GlStateManager.popMatrix();
}
}
}
示例5: renderWithRotation
import net.minecraft.client.renderer.GlStateManager; //导入方法依赖的package包/类
public void renderWithRotation(float p_78791_1_)
{
if (!this.isHidden && this.showModel)
{
if (!this.compiled)
{
this.compileDisplayList(p_78791_1_);
}
GlStateManager.pushMatrix();
GlStateManager.translate(this.rotationPointX * p_78791_1_, this.rotationPointY * p_78791_1_, this.rotationPointZ * p_78791_1_);
if (this.rotateAngleY != 0.0F)
{
GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F);
}
if (this.rotateAngleX != 0.0F)
{
GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F);
}
if (this.rotateAngleZ != 0.0F)
{
GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F);
}
GlStateManager.callList(this.displayList);
GlStateManager.popMatrix();
}
}
示例6: renderWithRotation
import net.minecraft.client.renderer.GlStateManager; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
public void renderWithRotation(float scale)
{
if (!this.isHidden)
{
if (this.showModel)
{
if (!this.compiled)
{
this.compileDisplayList(scale);
}
GlStateManager.pushMatrix();
GlStateManager.translate(this.rotationPointX * scale, this.rotationPointY * scale, this.rotationPointZ * scale);
if (this.rotateAngleY != 0.0F)
{
GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F);
}
if (this.rotateAngleX != 0.0F)
{
GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F);
}
if (this.rotateAngleZ != 0.0F)
{
GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F);
}
GlStateManager.callList(this.displayList);
GlStateManager.popMatrix();
}
}
}
示例7: render
import net.minecraft.client.renderer.GlStateManager; //导入方法依赖的package包/类
public void render(float p_78785_1_)
{
if (!this.isHidden)
{
if (this.showModel)
{
if (!this.compiled)
{
this.compileDisplayList(p_78785_1_);
}
GlStateManager.translate(this.offsetX, this.offsetY, this.offsetZ);
if (this.rotateAngleX == 0.0F && this.rotateAngleY == 0.0F && this.rotateAngleZ == 0.0F)
{
if (this.rotationPointX == 0.0F && this.rotationPointY == 0.0F && this.rotationPointZ == 0.0F)
{
GlStateManager.callList(this.displayList);
if (this.childModels != null)
{
for (int k = 0; k < this.childModels.size(); ++k)
{
((ModelRenderer)this.childModels.get(k)).render(p_78785_1_);
}
}
}
else
{
GlStateManager.translate(this.rotationPointX * p_78785_1_, this.rotationPointY * p_78785_1_, this.rotationPointZ * p_78785_1_);
GlStateManager.callList(this.displayList);
if (this.childModels != null)
{
for (int j = 0; j < this.childModels.size(); ++j)
{
((ModelRenderer)this.childModels.get(j)).render(p_78785_1_);
}
}
GlStateManager.translate(-this.rotationPointX * p_78785_1_, -this.rotationPointY * p_78785_1_, -this.rotationPointZ * p_78785_1_);
}
}
else
{
GlStateManager.pushMatrix();
GlStateManager.translate(this.rotationPointX * p_78785_1_, this.rotationPointY * p_78785_1_, this.rotationPointZ * p_78785_1_);
if (this.rotateAngleZ != 0.0F)
{
GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F);
}
if (this.rotateAngleY != 0.0F)
{
GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F);
}
if (this.rotateAngleX != 0.0F)
{
GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F);
}
GlStateManager.callList(this.displayList);
if (this.childModels != null)
{
for (int i = 0; i < this.childModels.size(); ++i)
{
((ModelRenderer)this.childModels.get(i)).render(p_78785_1_);
}
}
GlStateManager.popMatrix();
}
GlStateManager.translate(-this.offsetX, -this.offsetY, -this.offsetZ);
}
}
}
示例8: render
import net.minecraft.client.renderer.GlStateManager; //导入方法依赖的package包/类
public void render(float p_78785_1_)
{
if (!this.isHidden && this.showModel)
{
if (!this.compiled)
{
this.compileDisplayList(p_78785_1_);
}
GlStateManager.translate(this.offsetX, this.offsetY, this.offsetZ);
if (this.rotateAngleX == 0.0F && this.rotateAngleY == 0.0F && this.rotateAngleZ == 0.0F)
{
if (this.rotationPointX == 0.0F && this.rotationPointY == 0.0F && this.rotationPointZ == 0.0F)
{
GlStateManager.callList(this.displayList);
if (this.childModels != null)
{
for (int k = 0; k < this.childModels.size(); ++k)
{
((ModelRenderer)this.childModels.get(k)).render(p_78785_1_);
}
}
}
else
{
GlStateManager.translate(this.rotationPointX * p_78785_1_, this.rotationPointY * p_78785_1_, this.rotationPointZ * p_78785_1_);
GlStateManager.callList(this.displayList);
if (this.childModels != null)
{
for (int j = 0; j < this.childModels.size(); ++j)
{
((ModelRenderer)this.childModels.get(j)).render(p_78785_1_);
}
}
GlStateManager.translate(-this.rotationPointX * p_78785_1_, -this.rotationPointY * p_78785_1_, -this.rotationPointZ * p_78785_1_);
}
}
else
{
GlStateManager.pushMatrix();
GlStateManager.translate(this.rotationPointX * p_78785_1_, this.rotationPointY * p_78785_1_, this.rotationPointZ * p_78785_1_);
if (this.rotateAngleZ != 0.0F)
{
GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F);
}
if (this.rotateAngleY != 0.0F)
{
GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F);
}
if (this.rotateAngleX != 0.0F)
{
GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F);
}
GlStateManager.callList(this.displayList);
if (this.childModels != null)
{
for (int i = 0; i < this.childModels.size(); ++i)
{
((ModelRenderer)this.childModels.get(i)).render(p_78785_1_);
}
}
GlStateManager.popMatrix();
}
GlStateManager.translate(-this.offsetX, -this.offsetY, -this.offsetZ);
}
}
示例9: renderWithRotation
import net.minecraft.client.renderer.GlStateManager; //导入方法依赖的package包/类
public void renderWithRotation(float scale)
{
if (!this.isHidden && this.showModel)
{
if (!this.compiled)
{
this.compileDisplayList(scale);
}
int i = 0;
if (this.textureLocation != null && !this.renderGlobal.renderOverlayDamaged)
{
if (this.renderGlobal.renderOverlayEyes)
{
return;
}
i = GlStateManager.getBoundTexture();
Config.getTextureManager().bindTexture(this.textureLocation);
}
if (this.modelUpdater != null)
{
this.modelUpdater.update();
}
boolean flag = this.scaleX != 1.0F || this.scaleY != 1.0F || this.scaleZ != 1.0F;
GlStateManager.pushMatrix();
GlStateManager.translate(this.rotationPointX * scale, this.rotationPointY * scale, this.rotationPointZ * scale);
if (this.rotateAngleY != 0.0F)
{
GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F);
}
if (this.rotateAngleX != 0.0F)
{
GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F);
}
if (this.rotateAngleZ != 0.0F)
{
GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F);
}
if (flag)
{
GlStateManager.scale(this.scaleX, this.scaleY, this.scaleZ);
}
GlStateManager.callList(this.displayList);
if (this.childModels != null)
{
for (int j = 0; j < this.childModels.size(); ++j)
{
((ModelRenderer)this.childModels.get(j)).render(scale);
}
}
GlStateManager.popMatrix();
if (i != 0)
{
GlStateManager.bindTexture(i);
}
}
}
示例10: render
import net.minecraft.client.renderer.GlStateManager; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
public void render(float scale)
{
if (!this.isHidden)
{
if (this.showModel)
{
if (!this.compiled)
{
this.compileDisplayList(scale);
}
GlStateManager.translate(this.offsetX, this.offsetY, this.offsetZ);
if (this.rotateAngleX == 0.0F && this.rotateAngleY == 0.0F && this.rotateAngleZ == 0.0F)
{
if (this.rotationPointX == 0.0F && this.rotationPointY == 0.0F && this.rotationPointZ == 0.0F)
{
GlStateManager.callList(this.displayList);
if (this.childModels != null)
{
for (int k = 0; k < this.childModels.size(); ++k)
{
((ModelRenderer)this.childModels.get(k)).render(scale);
}
}
}
else
{
GlStateManager.translate(this.rotationPointX * scale, this.rotationPointY * scale, this.rotationPointZ * scale);
GlStateManager.callList(this.displayList);
if (this.childModels != null)
{
for (int j = 0; j < this.childModels.size(); ++j)
{
((ModelRenderer)this.childModels.get(j)).render(scale);
}
}
GlStateManager.translate(-this.rotationPointX * scale, -this.rotationPointY * scale, -this.rotationPointZ * scale);
}
}
else
{
GlStateManager.pushMatrix();
GlStateManager.translate(this.rotationPointX * scale, this.rotationPointY * scale, this.rotationPointZ * scale);
if (this.rotateAngleZ != 0.0F)
{
GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F);
}
if (this.rotateAngleY != 0.0F)
{
GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F);
}
if (this.rotateAngleX != 0.0F)
{
GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F);
}
GlStateManager.callList(this.displayList);
if (this.childModels != null)
{
for (int i = 0; i < this.childModels.size(); ++i)
{
((ModelRenderer)this.childModels.get(i)).render(scale);
}
}
GlStateManager.popMatrix();
}
GlStateManager.translate(-this.offsetX, -this.offsetY, -this.offsetZ);
}
}
}