當前位置: 首頁>>代碼示例>>Java>>正文


Java Icon.func_94214_a方法代碼示例

本文整理匯總了Java中net.minecraft.util.Icon.func_94214_a方法的典型用法代碼示例。如果您正苦於以下問題:Java Icon.func_94214_a方法的具體用法?Java Icon.func_94214_a怎麽用?Java Icon.func_94214_a使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在net.minecraft.util.Icon的用法示例。


在下文中一共展示了Icon.func_94214_a方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: func_78591_a

import net.minecraft.util.Icon; //導入方法依賴的package包/類
public void func_78591_a(double p_78591_1_, double p_78591_3_, double p_78591_5_, double p_78591_7_, double p_78591_9_, double p_78591_11_, float p_78591_13_, double p_78591_14_) {
   Icon var16 = BlockPistonBase.func_94496_b("piston_side");
   if(this.func_94167_b()) {
      var16 = this.field_78664_d;
   }

   Tessellator var17 = Tessellator.field_78398_a;
   double var18 = (double)var16.func_94209_e();
   double var20 = (double)var16.func_94206_g();
   double var22 = (double)var16.func_94214_a(p_78591_14_);
   double var24 = (double)var16.func_94207_b(4.0D);
   var17.func_78386_a(p_78591_13_, p_78591_13_, p_78591_13_);
   var17.func_78374_a(p_78591_1_, p_78591_7_, p_78591_9_, var22, var20);
   var17.func_78374_a(p_78591_1_, p_78591_5_, p_78591_9_, var18, var20);
   var17.func_78374_a(p_78591_3_, p_78591_5_, p_78591_11_, var18, var24);
   var17.func_78374_a(p_78591_3_, p_78591_7_, p_78591_11_, var22, var24);
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:18,代碼來源:RenderBlocks.java

示例2: func_78607_b

import net.minecraft.util.Icon; //導入方法依賴的package包/類
public void func_78607_b(double p_78607_1_, double p_78607_3_, double p_78607_5_, double p_78607_7_, double p_78607_9_, double p_78607_11_, float p_78607_13_, double p_78607_14_) {
   Icon var16 = BlockPistonBase.func_94496_b("piston_side");
   if(this.func_94167_b()) {
      var16 = this.field_78664_d;
   }

   Tessellator var17 = Tessellator.field_78398_a;
   double var18 = (double)var16.func_94209_e();
   double var20 = (double)var16.func_94206_g();
   double var22 = (double)var16.func_94214_a(p_78607_14_);
   double var24 = (double)var16.func_94207_b(4.0D);
   var17.func_78386_a(p_78607_13_, p_78607_13_, p_78607_13_);
   var17.func_78374_a(p_78607_1_, p_78607_5_, p_78607_11_, var22, var20);
   var17.func_78374_a(p_78607_1_, p_78607_5_, p_78607_9_, var18, var20);
   var17.func_78374_a(p_78607_3_, p_78607_7_, p_78607_9_, var18, var24);
   var17.func_78374_a(p_78607_3_, p_78607_7_, p_78607_11_, var22, var24);
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:18,代碼來源:RenderBlocks.java

示例3: func_78571_c

import net.minecraft.util.Icon; //導入方法依賴的package包/類
public void func_78571_c(double p_78571_1_, double p_78571_3_, double p_78571_5_, double p_78571_7_, double p_78571_9_, double p_78571_11_, float p_78571_13_, double p_78571_14_) {
   Icon var16 = BlockPistonBase.func_94496_b("piston_side");
   if(this.func_94167_b()) {
      var16 = this.field_78664_d;
   }

   Tessellator var17 = Tessellator.field_78398_a;
   double var18 = (double)var16.func_94209_e();
   double var20 = (double)var16.func_94206_g();
   double var22 = (double)var16.func_94214_a(p_78571_14_);
   double var24 = (double)var16.func_94207_b(4.0D);
   var17.func_78386_a(p_78571_13_, p_78571_13_, p_78571_13_);
   var17.func_78374_a(p_78571_3_, p_78571_5_, p_78571_9_, var22, var20);
   var17.func_78374_a(p_78571_1_, p_78571_5_, p_78571_9_, var18, var20);
   var17.func_78374_a(p_78571_1_, p_78571_7_, p_78571_11_, var18, var24);
   var17.func_78374_a(p_78571_3_, p_78571_7_, p_78571_11_, var22, var24);
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:18,代碼來源:RenderBlocks.java

示例4: func_78585_a

import net.minecraft.util.Icon; //導入方法依賴的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;
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:65,代碼來源:RenderBlocks.java

示例5: func_78610_x

import net.minecraft.util.Icon; //導入方法依賴的package包/類
public boolean func_78610_x(BlockRedstoneRepeater p_78610_1_, int p_78610_2_, int p_78610_3_, int p_78610_4_) {
   int var5 = this.field_78669_a.func_72805_g(p_78610_2_, p_78610_3_, p_78610_4_);
   int var6 = var5 & 3;
   int var7 = (var5 & 12) >> 2;
   Tessellator var8 = Tessellator.field_78398_a;
   var8.func_78380_c(p_78610_1_.func_71874_e(this.field_78669_a, p_78610_2_, p_78610_3_, p_78610_4_));
   var8.func_78386_a(1.0F, 1.0F, 1.0F);
   double var9 = -0.1875D;
   boolean var11 = p_78610_1_.func_94476_e(this.field_78669_a, p_78610_2_, p_78610_3_, p_78610_4_, var5);
   double var12 = 0.0D;
   double var14 = 0.0D;
   double var16 = 0.0D;
   double var18 = 0.0D;
   switch(var6) {
   case 0:
      var18 = -0.3125D;
      var14 = BlockRedstoneRepeater.field_72223_a[var7];
      break;
   case 1:
      var16 = 0.3125D;
      var12 = -BlockRedstoneRepeater.field_72223_a[var7];
      break;
   case 2:
      var18 = 0.3125D;
      var14 = -BlockRedstoneRepeater.field_72223_a[var7];
      break;
   case 3:
      var16 = -0.3125D;
      var12 = BlockRedstoneRepeater.field_72223_a[var7];
   }

   if(!var11) {
      this.func_78623_a(p_78610_1_, (double)p_78610_2_ + var12, (double)p_78610_3_ + var9, (double)p_78610_4_ + var14, 0.0D, 0.0D, 0);
   } else {
      Icon var20 = this.func_94175_b(Block.field_71986_z);
      this.func_82774_a(var20);
      float var21 = 2.0F;
      float var22 = 14.0F;
      float var23 = 7.0F;
      float var24 = 9.0F;
      switch(var6) {
      case 1:
      case 3:
         var21 = 7.0F;
         var22 = 9.0F;
         var23 = 2.0F;
         var24 = 14.0F;
      case 0:
      case 2:
      default:
         this.func_83020_a((double)(var21 / 16.0F + (float)var12), 0.125D, (double)(var23 / 16.0F + (float)var14), (double)(var22 / 16.0F + (float)var12), 0.25D, (double)(var24 / 16.0F + (float)var14));
         double var25 = (double)var20.func_94214_a((double)var21);
         double var27 = (double)var20.func_94207_b((double)var23);
         double var29 = (double)var20.func_94214_a((double)var22);
         double var31 = (double)var20.func_94207_b((double)var24);
         var8.func_78374_a((double)((float)p_78610_2_ + var21 / 16.0F) + var12, (double)((float)p_78610_3_ + 0.25F), (double)((float)p_78610_4_ + var23 / 16.0F) + var14, var25, var27);
         var8.func_78374_a((double)((float)p_78610_2_ + var21 / 16.0F) + var12, (double)((float)p_78610_3_ + 0.25F), (double)((float)p_78610_4_ + var24 / 16.0F) + var14, var25, var31);
         var8.func_78374_a((double)((float)p_78610_2_ + var22 / 16.0F) + var12, (double)((float)p_78610_3_ + 0.25F), (double)((float)p_78610_4_ + var24 / 16.0F) + var14, var29, var31);
         var8.func_78374_a((double)((float)p_78610_2_ + var22 / 16.0F) + var12, (double)((float)p_78610_3_ + 0.25F), (double)((float)p_78610_4_ + var23 / 16.0F) + var14, var29, var27);
         this.func_78570_q(p_78610_1_, p_78610_2_, p_78610_3_, p_78610_4_);
         this.func_83020_a(0.0D, 0.0D, 0.0D, 1.0D, 0.125D, 1.0D);
         this.func_78595_a();
      }
   }

   var8.func_78380_c(p_78610_1_.func_71874_e(this.field_78669_a, p_78610_2_, p_78610_3_, p_78610_4_));
   var8.func_78386_a(1.0F, 1.0F, 1.0F);
   this.func_78623_a(p_78610_1_, (double)p_78610_2_ + var16, (double)p_78610_3_ + var9, (double)p_78610_4_ + var18, 0.0D, 0.0D, 0);
   this.func_94176_a(p_78610_1_, p_78610_2_, p_78610_3_, p_78610_4_);
   return true;
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:72,代碼來源:RenderBlocks.java

示例6: func_78623_a

import net.minecraft.util.Icon; //導入方法依賴的package包/類
public void func_78623_a(Block p_78623_1_, double p_78623_2_, double p_78623_4_, double p_78623_6_, double p_78623_8_, double p_78623_10_, int p_78623_12_) {
   Tessellator var13 = Tessellator.field_78398_a;
   Icon var14 = this.func_94165_a(p_78623_1_, 0, p_78623_12_);
   if(this.func_94167_b()) {
      var14 = this.field_78664_d;
   }

   double var15 = (double)var14.func_94209_e();
   double var17 = (double)var14.func_94206_g();
   double var19 = (double)var14.func_94212_f();
   double var21 = (double)var14.func_94210_h();
   double var23 = (double)var14.func_94214_a(7.0D);
   double var25 = (double)var14.func_94207_b(6.0D);
   double var27 = (double)var14.func_94214_a(9.0D);
   double var29 = (double)var14.func_94207_b(8.0D);
   double var31 = (double)var14.func_94214_a(7.0D);
   double var33 = (double)var14.func_94207_b(13.0D);
   double var35 = (double)var14.func_94214_a(9.0D);
   double var37 = (double)var14.func_94207_b(15.0D);
   p_78623_2_ += 0.5D;
   p_78623_6_ += 0.5D;
   double var39 = p_78623_2_ - 0.5D;
   double var41 = p_78623_2_ + 0.5D;
   double var43 = p_78623_6_ - 0.5D;
   double var45 = p_78623_6_ + 0.5D;
   double var47 = 0.0625D;
   double var49 = 0.625D;
   var13.func_78374_a(p_78623_2_ + p_78623_8_ * (1.0D - var49) - var47, p_78623_4_ + var49, p_78623_6_ + p_78623_10_ * (1.0D - var49) - var47, var23, var25);
   var13.func_78374_a(p_78623_2_ + p_78623_8_ * (1.0D - var49) - var47, p_78623_4_ + var49, p_78623_6_ + p_78623_10_ * (1.0D - var49) + var47, var23, var29);
   var13.func_78374_a(p_78623_2_ + p_78623_8_ * (1.0D - var49) + var47, p_78623_4_ + var49, p_78623_6_ + p_78623_10_ * (1.0D - var49) + var47, var27, var29);
   var13.func_78374_a(p_78623_2_ + p_78623_8_ * (1.0D - var49) + var47, p_78623_4_ + var49, p_78623_6_ + p_78623_10_ * (1.0D - var49) - var47, var27, var25);
   var13.func_78374_a(p_78623_2_ + var47 + p_78623_8_, p_78623_4_, p_78623_6_ - var47 + p_78623_10_, var35, var33);
   var13.func_78374_a(p_78623_2_ + var47 + p_78623_8_, p_78623_4_, p_78623_6_ + var47 + p_78623_10_, var35, var37);
   var13.func_78374_a(p_78623_2_ - var47 + p_78623_8_, p_78623_4_, p_78623_6_ + var47 + p_78623_10_, var31, var37);
   var13.func_78374_a(p_78623_2_ - var47 + p_78623_8_, p_78623_4_, p_78623_6_ - var47 + p_78623_10_, var31, var33);
   var13.func_78374_a(p_78623_2_ - var47, p_78623_4_ + 1.0D, var43, var15, var17);
   var13.func_78374_a(p_78623_2_ - var47 + p_78623_8_, p_78623_4_ + 0.0D, var43 + p_78623_10_, var15, var21);
   var13.func_78374_a(p_78623_2_ - var47 + p_78623_8_, p_78623_4_ + 0.0D, var45 + p_78623_10_, var19, var21);
   var13.func_78374_a(p_78623_2_ - var47, p_78623_4_ + 1.0D, var45, var19, var17);
   var13.func_78374_a(p_78623_2_ + var47, p_78623_4_ + 1.0D, var45, var15, var17);
   var13.func_78374_a(p_78623_2_ + p_78623_8_ + var47, p_78623_4_ + 0.0D, var45 + p_78623_10_, var15, var21);
   var13.func_78374_a(p_78623_2_ + p_78623_8_ + var47, p_78623_4_ + 0.0D, var43 + p_78623_10_, var19, var21);
   var13.func_78374_a(p_78623_2_ + var47, p_78623_4_ + 1.0D, var43, var19, var17);
   var13.func_78374_a(var39, p_78623_4_ + 1.0D, p_78623_6_ + var47, var15, var17);
   var13.func_78374_a(var39 + p_78623_8_, p_78623_4_ + 0.0D, p_78623_6_ + var47 + p_78623_10_, var15, var21);
   var13.func_78374_a(var41 + p_78623_8_, p_78623_4_ + 0.0D, p_78623_6_ + var47 + p_78623_10_, var19, var21);
   var13.func_78374_a(var41, p_78623_4_ + 1.0D, p_78623_6_ + var47, var19, var17);
   var13.func_78374_a(var41, p_78623_4_ + 1.0D, p_78623_6_ - var47, var15, var17);
   var13.func_78374_a(var41 + p_78623_8_, p_78623_4_ + 0.0D, p_78623_6_ - var47 + p_78623_10_, var15, var21);
   var13.func_78374_a(var39 + p_78623_8_, p_78623_4_ + 0.0D, p_78623_6_ - var47 + p_78623_10_, var19, var21);
   var13.func_78374_a(var39, p_78623_4_ + 1.0D, p_78623_6_ - var47, var19, var17);
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:53,代碼來源:RenderBlocks.java


注:本文中的net.minecraft.util.Icon.func_94214_a方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。