本文整理匯總了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);
}
}
}