本文整理汇总了Java中net.minecraft.client.renderer.EntityRenderer.field_78517_a方法的典型用法代码示例。如果您正苦于以下问题:Java EntityRenderer.field_78517_a方法的具体用法?Java EntityRenderer.field_78517_a怎么用?Java EntityRenderer.field_78517_a使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.client.renderer.EntityRenderer
的用法示例。
在下文中一共展示了EntityRenderer.field_78517_a方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: func_85096_a
import net.minecraft.client.renderer.EntityRenderer; //导入方法依赖的package包/类
public boolean func_85096_a(BlockAnvil p_85096_1_, int p_85096_2_, int p_85096_3_, int p_85096_4_, int p_85096_5_) {
Tessellator var6 = Tessellator.field_78398_a;
var6.func_78380_c(p_85096_1_.func_71874_e(this.field_78669_a, p_85096_2_, p_85096_3_, p_85096_4_));
float var7 = 1.0F;
int var8 = p_85096_1_.func_71920_b(this.field_78669_a, p_85096_2_, p_85096_3_, p_85096_4_);
float var9 = (float)(var8 >> 16 & 255) / 255.0F;
float var10 = (float)(var8 >> 8 & 255) / 255.0F;
float var11 = (float)(var8 & 255) / 255.0F;
if(EntityRenderer.field_78517_a) {
float var12 = (var9 * 30.0F + var10 * 59.0F + var11 * 11.0F) / 100.0F;
float var13 = (var9 * 30.0F + var10 * 70.0F) / 100.0F;
float var14 = (var9 * 30.0F + var11 * 70.0F) / 100.0F;
var9 = var12;
var10 = var13;
var11 = var14;
}
var6.func_78386_a(var7 * var9, var7 * var10, var7 * var11);
return this.func_82776_a(p_85096_1_, p_85096_2_, p_85096_3_, p_85096_4_, p_85096_5_, false);
}
示例2: func_78570_q
import net.minecraft.client.renderer.EntityRenderer; //导入方法依赖的package包/类
public boolean func_78570_q(Block p_78570_1_, int p_78570_2_, int p_78570_3_, int p_78570_4_) {
int var5 = p_78570_1_.func_71920_b(this.field_78669_a, p_78570_2_, p_78570_3_, p_78570_4_);
float var6 = (float)(var5 >> 16 & 255) / 255.0F;
float var7 = (float)(var5 >> 8 & 255) / 255.0F;
float var8 = (float)(var5 & 255) / 255.0F;
if(EntityRenderer.field_78517_a) {
float var9 = (var6 * 30.0F + var7 * 59.0F + var8 * 11.0F) / 100.0F;
float var10 = (var6 * 30.0F + var7 * 70.0F) / 100.0F;
float var11 = (var6 * 30.0F + var8 * 70.0F) / 100.0F;
var6 = var9;
var7 = var10;
var8 = var11;
}
return Minecraft.func_71379_u() && Block.field_71984_q[p_78570_1_.field_71990_ca] == 0?(this.field_98189_n?this.func_102027_b(p_78570_1_, p_78570_2_, p_78570_3_, p_78570_4_, var6, var7, var8):this.func_78578_a(p_78570_1_, p_78570_2_, p_78570_3_, p_78570_4_, var6, var7, var8)):this.func_78609_c(p_78570_1_, p_78570_2_, p_78570_3_, p_78570_4_, var6, var7, var8);
}
示例3: func_78584_s
import net.minecraft.client.renderer.EntityRenderer; //导入方法依赖的package包/类
public boolean func_78584_s(Block p_78584_1_, int p_78584_2_, int p_78584_3_, int p_78584_4_) {
int var5 = p_78584_1_.func_71920_b(this.field_78669_a, p_78584_2_, p_78584_3_, p_78584_4_);
float var6 = (float)(var5 >> 16 & 255) / 255.0F;
float var7 = (float)(var5 >> 8 & 255) / 255.0F;
float var8 = (float)(var5 & 255) / 255.0F;
if(EntityRenderer.field_78517_a) {
float var9 = (var6 * 30.0F + var7 * 59.0F + var8 * 11.0F) / 100.0F;
float var10 = (var6 * 30.0F + var7 * 70.0F) / 100.0F;
float var11 = (var6 * 30.0F + var8 * 70.0F) / 100.0F;
var6 = var9;
var7 = var10;
var8 = var11;
}
return this.func_78569_d(p_78584_1_, p_78584_2_, p_78584_3_, p_78584_4_, var6, var7, var8);
}
示例4: func_94172_a
import net.minecraft.client.renderer.EntityRenderer; //导入方法依赖的package包/类
public boolean func_94172_a(BlockHopper p_94172_1_, int p_94172_2_, int p_94172_3_, int p_94172_4_) {
Tessellator var5 = Tessellator.field_78398_a;
var5.func_78380_c(p_94172_1_.func_71874_e(this.field_78669_a, p_94172_2_, p_94172_3_, p_94172_4_));
float var6 = 1.0F;
int var7 = p_94172_1_.func_71920_b(this.field_78669_a, p_94172_2_, p_94172_3_, p_94172_4_);
float var8 = (float)(var7 >> 16 & 255) / 255.0F;
float var9 = (float)(var7 >> 8 & 255) / 255.0F;
float var10 = (float)(var7 & 255) / 255.0F;
if(EntityRenderer.field_78517_a) {
float var11 = (var8 * 30.0F + var9 * 59.0F + var10 * 11.0F) / 100.0F;
float var12 = (var8 * 30.0F + var9 * 70.0F) / 100.0F;
float var13 = (var8 * 30.0F + var10 * 70.0F) / 100.0F;
var8 = var11;
var9 = var12;
var10 = var13;
}
var5.func_78386_a(var6 * var8, var6 * var9, var6 * var10);
return this.func_96447_a(p_94172_1_, p_94172_2_, p_94172_3_, p_94172_4_, this.field_78669_a.func_72805_g(p_94172_2_, p_94172_3_, p_94172_4_), false);
}
示例5: func_78620_l
import net.minecraft.client.renderer.EntityRenderer; //导入方法依赖的package包/类
public boolean func_78620_l(Block p_78620_1_, int p_78620_2_, int p_78620_3_, int p_78620_4_) {
Tessellator var5 = Tessellator.field_78398_a;
var5.func_78380_c(p_78620_1_.func_71874_e(this.field_78669_a, p_78620_2_, p_78620_3_, p_78620_4_));
float var6 = 1.0F;
int var7 = p_78620_1_.func_71920_b(this.field_78669_a, p_78620_2_, p_78620_3_, p_78620_4_);
float var8 = (float)(var7 >> 16 & 255) / 255.0F;
float var9 = (float)(var7 >> 8 & 255) / 255.0F;
float var10 = (float)(var7 & 255) / 255.0F;
if(EntityRenderer.field_78517_a) {
float var11 = (var8 * 30.0F + var9 * 59.0F + var10 * 11.0F) / 100.0F;
float var12 = (var8 * 30.0F + var9 * 70.0F) / 100.0F;
float var13 = (var8 * 30.0F + var10 * 70.0F) / 100.0F;
var8 = var11;
var9 = var12;
var10 = var13;
}
var5.func_78386_a(var6 * var8, var6 * var9, var6 * var10);
double var19 = (double)p_78620_2_;
double var20 = (double)p_78620_3_;
double var15 = (double)p_78620_4_;
if(p_78620_1_ == Block.field_71962_X) {
long var17 = (long)(p_78620_2_ * 3129871) ^ (long)p_78620_4_ * 116129781L ^ (long)p_78620_3_;
var17 = var17 * var17 * 42317861L + var17 * 11L;
var19 += ((double)((float)(var17 >> 16 & 15L) / 15.0F) - 0.5D) * 0.5D;
var20 += ((double)((float)(var17 >> 20 & 15L) / 15.0F) - 1.0D) * 0.2D;
var15 += ((double)((float)(var17 >> 24 & 15L) / 15.0F) - 0.5D) * 0.5D;
}
this.func_78599_a(p_78620_1_, this.field_78669_a.func_72805_g(p_78620_2_, p_78620_3_, p_78620_4_), var19, var20, var15, 1.0F);
return true;
}
示例6: func_78603_m
import net.minecraft.client.renderer.EntityRenderer; //导入方法依赖的package包/类
public boolean func_78603_m(Block p_78603_1_, int p_78603_2_, int p_78603_3_, int p_78603_4_) {
BlockStem var5 = (BlockStem)p_78603_1_;
Tessellator var6 = Tessellator.field_78398_a;
var6.func_78380_c(var5.func_71874_e(this.field_78669_a, p_78603_2_, p_78603_3_, p_78603_4_));
float var7 = 1.0F;
int var8 = var5.func_71920_b(this.field_78669_a, p_78603_2_, p_78603_3_, p_78603_4_);
float var9 = (float)(var8 >> 16 & 255) / 255.0F;
float var10 = (float)(var8 >> 8 & 255) / 255.0F;
float var11 = (float)(var8 & 255) / 255.0F;
if(EntityRenderer.field_78517_a) {
float var12 = (var9 * 30.0F + var10 * 59.0F + var11 * 11.0F) / 100.0F;
float var13 = (var9 * 30.0F + var10 * 70.0F) / 100.0F;
float var14 = (var9 * 30.0F + var11 * 70.0F) / 100.0F;
var9 = var12;
var10 = var13;
var11 = var14;
}
var6.func_78386_a(var7 * var9, var7 * var10, var7 * var11);
var5.func_71902_a(this.field_78669_a, p_78603_2_, p_78603_3_, p_78603_4_);
int var15 = var5.func_72265_d(this.field_78669_a, p_78603_2_, p_78603_3_, p_78603_4_);
if(var15 < 0) {
this.func_78575_a(var5, this.field_78669_a.func_72805_g(p_78603_2_, p_78603_3_, p_78603_4_), this.field_83024_j, (double)p_78603_2_, (double)((float)p_78603_3_ - 0.0625F), (double)p_78603_4_);
} else {
this.func_78575_a(var5, this.field_78669_a.func_72805_g(p_78603_2_, p_78603_3_, p_78603_4_), 0.5D, (double)p_78603_2_, (double)((float)p_78603_3_ - 0.0625F), (double)p_78603_4_);
this.func_78606_a(var5, this.field_78669_a.func_72805_g(p_78603_2_, p_78603_3_, p_78603_4_), var15, this.field_83024_j, (double)p_78603_2_, (double)((float)p_78603_3_ - 0.0625F), (double)p_78603_4_);
}
return true;
}
示例7: func_78585_a
import net.minecraft.client.renderer.EntityRenderer; //导入方法依赖的package包/类
public boolean func_78585_a(BlockBrewingStand p_78585_1_, int p_78585_2_, int p_78585_3_, int p_78585_4_) {
this.func_83020_a(0.4375D, 0.0D, 0.4375D, 0.5625D, 0.875D, 0.5625D);
this.func_78570_q(p_78585_1_, p_78585_2_, p_78585_3_, p_78585_4_);
this.func_82774_a(p_78585_1_.func_94448_e());
this.field_78661_f = true;
this.func_83020_a(0.5625D, 0.0D, 0.3125D, 0.9375D, 0.125D, 0.6875D);
this.func_78570_q(p_78585_1_, p_78585_2_, p_78585_3_, p_78585_4_);
this.func_83020_a(0.125D, 0.0D, 0.0625D, 0.5D, 0.125D, 0.4375D);
this.func_78570_q(p_78585_1_, p_78585_2_, p_78585_3_, p_78585_4_);
this.func_83020_a(0.125D, 0.0D, 0.5625D, 0.5D, 0.125D, 0.9375D);
this.func_78570_q(p_78585_1_, p_78585_2_, p_78585_3_, p_78585_4_);
this.field_78661_f = false;
this.func_78595_a();
Tessellator var5 = Tessellator.field_78398_a;
var5.func_78380_c(p_78585_1_.func_71874_e(this.field_78669_a, p_78585_2_, p_78585_3_, p_78585_4_));
float var6 = 1.0F;
int var7 = p_78585_1_.func_71920_b(this.field_78669_a, p_78585_2_, p_78585_3_, p_78585_4_);
float var8 = (float)(var7 >> 16 & 255) / 255.0F;
float var9 = (float)(var7 >> 8 & 255) / 255.0F;
float var10 = (float)(var7 & 255) / 255.0F;
if(EntityRenderer.field_78517_a) {
float var11 = (var8 * 30.0F + var9 * 59.0F + var10 * 11.0F) / 100.0F;
float var12 = (var8 * 30.0F + var9 * 70.0F) / 100.0F;
float var13 = (var8 * 30.0F + var10 * 70.0F) / 100.0F;
var8 = var11;
var9 = var12;
var10 = var13;
}
var5.func_78386_a(var6 * var8, var6 * var9, var6 * var10);
Icon var32 = this.func_94165_a(p_78585_1_, 0, 0);
if(this.func_94167_b()) {
var32 = this.field_78664_d;
}
double var33 = (double)var32.func_94206_g();
double var14 = (double)var32.func_94210_h();
int var16 = this.field_78669_a.func_72805_g(p_78585_2_, p_78585_3_, p_78585_4_);
for(int var17 = 0; var17 < 3; ++var17) {
double var18 = (double)var17 * 3.141592653589793D * 2.0D / 3.0D + 1.5707963267948966D;
double var20 = (double)var32.func_94214_a(8.0D);
double var22 = (double)var32.func_94212_f();
if((var16 & 1 << var17) != 0) {
var22 = (double)var32.func_94209_e();
}
double var24 = (double)p_78585_2_ + 0.5D;
double var26 = (double)p_78585_2_ + 0.5D + Math.sin(var18) * 8.0D / 16.0D;
double var28 = (double)p_78585_4_ + 0.5D;
double var30 = (double)p_78585_4_ + 0.5D + Math.cos(var18) * 8.0D / 16.0D;
var5.func_78374_a(var24, (double)(p_78585_3_ + 1), var28, var20, var33);
var5.func_78374_a(var24, (double)(p_78585_3_ + 0), var28, var20, var14);
var5.func_78374_a(var26, (double)(p_78585_3_ + 0), var30, var22, var14);
var5.func_78374_a(var26, (double)(p_78585_3_ + 1), var30, var22, var33);
var5.func_78374_a(var26, (double)(p_78585_3_ + 1), var30, var22, var33);
var5.func_78374_a(var26, (double)(p_78585_3_ + 0), var30, var22, var14);
var5.func_78374_a(var24, (double)(p_78585_3_ + 0), var28, var20, var14);
var5.func_78374_a(var24, (double)(p_78585_3_ + 1), var28, var20, var33);
}
p_78585_1_.func_71919_f();
return true;
}
示例8: func_78615_a
import net.minecraft.client.renderer.EntityRenderer; //导入方法依赖的package包/类
public boolean func_78615_a(BlockCauldron p_78615_1_, int p_78615_2_, int p_78615_3_, int p_78615_4_) {
this.func_78570_q(p_78615_1_, p_78615_2_, p_78615_3_, p_78615_4_);
Tessellator var5 = Tessellator.field_78398_a;
var5.func_78380_c(p_78615_1_.func_71874_e(this.field_78669_a, p_78615_2_, p_78615_3_, p_78615_4_));
float var6 = 1.0F;
int var7 = p_78615_1_.func_71920_b(this.field_78669_a, p_78615_2_, p_78615_3_, p_78615_4_);
float var8 = (float)(var7 >> 16 & 255) / 255.0F;
float var9 = (float)(var7 >> 8 & 255) / 255.0F;
float var10 = (float)(var7 & 255) / 255.0F;
float var12;
if(EntityRenderer.field_78517_a) {
float var11 = (var8 * 30.0F + var9 * 59.0F + var10 * 11.0F) / 100.0F;
var12 = (var8 * 30.0F + var9 * 70.0F) / 100.0F;
float var13 = (var8 * 30.0F + var10 * 70.0F) / 100.0F;
var8 = var11;
var9 = var12;
var10 = var13;
}
var5.func_78386_a(var6 * var8, var6 * var9, var6 * var10);
Icon var16 = p_78615_1_.func_71851_a(2);
var12 = 0.125F;
this.func_78605_f(p_78615_1_, (double)((float)p_78615_2_ - 1.0F + var12), (double)p_78615_3_, (double)p_78615_4_, var16);
this.func_78573_e(p_78615_1_, (double)((float)p_78615_2_ + 1.0F - var12), (double)p_78615_3_, (double)p_78615_4_, var16);
this.func_78622_d(p_78615_1_, (double)p_78615_2_, (double)p_78615_3_, (double)((float)p_78615_4_ - 1.0F + var12), var16);
this.func_78611_c(p_78615_1_, (double)p_78615_2_, (double)p_78615_3_, (double)((float)p_78615_4_ + 1.0F - var12), var16);
Icon var17 = BlockCauldron.func_94375_b("inner");
this.func_78617_b(p_78615_1_, (double)p_78615_2_, (double)((float)p_78615_3_ - 1.0F + 0.25F), (double)p_78615_4_, var17);
this.func_78613_a(p_78615_1_, (double)p_78615_2_, (double)((float)p_78615_3_ + 1.0F - 0.75F), (double)p_78615_4_, var17);
int var14 = this.field_78669_a.func_72805_g(p_78615_2_, p_78615_3_, p_78615_4_);
if(var14 > 0) {
Icon var15 = BlockFluid.func_94424_b("water_still");
if(var14 > 3) {
var14 = 3;
}
this.func_78617_b(p_78615_1_, (double)p_78615_2_, (double)((float)p_78615_3_ - 1.0F + (6.0F + (float)var14 * 3.0F) / 16.0F), (double)p_78615_4_, var15);
}
return true;
}