EntityLiving variation of drawBlockDamageTexture to allow for Non-player viewports.
This commit is contained in:
parent
8882388902
commit
848837bd5c
2 changed files with 25 additions and 5 deletions
|
@ -70,7 +70,7 @@
|
||||||
GL11.glEnable(GL11.GL_ALPHA_TEST);
|
GL11.glEnable(GL11.GL_ALPHA_TEST);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1102,8 +1109,11 @@
|
@@ -1102,15 +1109,18 @@
|
||||||
var17 = (EntityPlayer)var4;
|
var17 = (EntityPlayer)var4;
|
||||||
GL11.glDisable(GL11.GL_ALPHA_TEST);
|
GL11.glDisable(GL11.GL_ALPHA_TEST);
|
||||||
this.mc.mcProfiler.endStartSection("outline");
|
this.mc.mcProfiler.endStartSection("outline");
|
||||||
|
@ -84,6 +84,14 @@
|
||||||
GL11.glEnable(GL11.GL_ALPHA_TEST);
|
GL11.glEnable(GL11.GL_ALPHA_TEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.mc.mcProfiler.endStartSection("destroyProgress");
|
||||||
|
GL11.glEnable(GL11.GL_BLEND);
|
||||||
|
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE);
|
||||||
|
- var5.drawBlockDamageTexture(Tessellator.instance, (EntityPlayer)var4, par1);
|
||||||
|
+ var5.drawBlockDamageTexture(Tessellator.instance, var4, par1);
|
||||||
|
GL11.glDisable(GL11.GL_BLEND);
|
||||||
|
this.mc.mcProfiler.endStartSection("weather");
|
||||||
|
this.renderRainSnow(par1);
|
||||||
@@ -1127,6 +1137,9 @@
|
@@ -1127,6 +1137,9 @@
|
||||||
this.setupFog(1, par1);
|
this.setupFog(1, par1);
|
||||||
GL11.glPopMatrix();
|
GL11.glPopMatrix();
|
||||||
|
|
|
@ -24,7 +24,19 @@
|
||||||
if (this.mc.theWorld.provider.worldType == 1)
|
if (this.mc.theWorld.provider.worldType == 1)
|
||||||
{
|
{
|
||||||
GL11.glDisable(GL11.GL_FOG);
|
GL11.glDisable(GL11.GL_FOG);
|
||||||
@@ -1790,6 +1799,7 @@
|
@@ -1535,6 +1544,11 @@
|
||||||
|
|
||||||
|
public void drawBlockDamageTexture(Tessellator par1Tessellator, EntityPlayer par2EntityPlayer, float par3)
|
||||||
|
{
|
||||||
|
+ drawBlockDamageTexture(par1Tessellator, (EntityLiving)par2EntityPlayer, par3);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public void drawBlockDamageTexture(Tessellator par1Tessellator, EntityLiving par2EntityPlayer, float par3)
|
||||||
|
+ {
|
||||||
|
double var4 = par2EntityPlayer.lastTickPosX + (par2EntityPlayer.posX - par2EntityPlayer.lastTickPosX) * (double)par3;
|
||||||
|
double var6 = par2EntityPlayer.lastTickPosY + (par2EntityPlayer.posY - par2EntityPlayer.lastTickPosY) * (double)par3;
|
||||||
|
double var8 = par2EntityPlayer.lastTickPosZ + (par2EntityPlayer.posZ - par2EntityPlayer.lastTickPosZ) * (double)par3;
|
||||||
|
@@ -1790,6 +1804,7 @@
|
||||||
double var17 = this.mc.renderViewEntity.posY - par4;
|
double var17 = this.mc.renderViewEntity.posY - par4;
|
||||||
double var19 = this.mc.renderViewEntity.posZ - par6;
|
double var19 = this.mc.renderViewEntity.posZ - par6;
|
||||||
EntityFX var21 = null;
|
EntityFX var21 = null;
|
||||||
|
@ -32,7 +44,7 @@
|
||||||
|
|
||||||
if (par1Str.equals("hugeexplosion"))
|
if (par1Str.equals("hugeexplosion"))
|
||||||
{
|
{
|
||||||
@@ -1909,6 +1919,7 @@
|
@@ -1909,6 +1924,7 @@
|
||||||
else if (par1Str.equals("snowballpoof"))
|
else if (par1Str.equals("snowballpoof"))
|
||||||
{
|
{
|
||||||
var21 = new EntityBreakingFX(this.theWorld, par2, par4, par6, Item.snowball);
|
var21 = new EntityBreakingFX(this.theWorld, par2, par4, par6, Item.snowball);
|
||||||
|
@ -40,7 +52,7 @@
|
||||||
}
|
}
|
||||||
else if (par1Str.equals("dripWater"))
|
else if (par1Str.equals("dripWater"))
|
||||||
{
|
{
|
||||||
@@ -1925,6 +1936,7 @@
|
@@ -1925,6 +1941,7 @@
|
||||||
else if (par1Str.equals("slime"))
|
else if (par1Str.equals("slime"))
|
||||||
{
|
{
|
||||||
var21 = new EntityBreakingFX(this.theWorld, par2, par4, par6, Item.slimeBall);
|
var21 = new EntityBreakingFX(this.theWorld, par2, par4, par6, Item.slimeBall);
|
||||||
|
@ -48,7 +60,7 @@
|
||||||
}
|
}
|
||||||
else if (par1Str.equals("heart"))
|
else if (par1Str.equals("heart"))
|
||||||
{
|
{
|
||||||
@@ -1938,17 +1950,19 @@
|
@@ -1938,17 +1955,19 @@
|
||||||
{
|
{
|
||||||
var24 = Integer.parseInt(par1Str.substring(par1Str.indexOf("_") + 1));
|
var24 = Integer.parseInt(par1Str.substring(par1Str.indexOf("_") + 1));
|
||||||
var21 = new EntityBreakingFX(this.theWorld, par2, par4, par6, par8, par10, par12, Item.itemsList[var24]);
|
var21 = new EntityBreakingFX(this.theWorld, par2, par4, par6, par8, par10, par12, Item.itemsList[var24]);
|
||||||
|
|
Loading…
Reference in a new issue