当前位置: 首页>>代码示例>>Java>>正文


Java BossStatus.func_82824_a方法代码示例

本文整理汇总了Java中net.minecraft.entity.boss.BossStatus.func_82824_a方法的典型用法代码示例。如果您正苦于以下问题:Java BossStatus.func_82824_a方法的具体用法?Java BossStatus.func_82824_a怎么用?Java BossStatus.func_82824_a使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.entity.boss.BossStatus的用法示例。


在下文中一共展示了BossStatus.func_82824_a方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: func_82418_a

import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
public void func_82418_a(EntityWither p_82418_1_, double p_82418_2_, double p_82418_4_, double p_82418_6_, float p_82418_8_, float p_82418_9_) {
   BossStatus.func_82824_a(p_82418_1_, true);
   int var10 = ((ModelWither)this.field_77045_g).func_82903_a();
   if(var10 != this.field_82419_a) {
      this.field_82419_a = var10;
      this.field_77045_g = new ModelWither();
   }

   super.func_77031_a(p_82418_1_, p_82418_2_, p_82418_4_, p_82418_6_, p_82418_8_, p_82418_9_);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:11,代码来源:RenderWither.java

示例2: func_77079_a

import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
public void func_77079_a(EntityDragon p_77079_1_, double p_77079_2_, double p_77079_4_, double p_77079_6_, float p_77079_8_, float p_77079_9_) {
   BossStatus.func_82824_a(p_77079_1_, false);
   super.func_77031_a(p_77079_1_, p_77079_2_, p_77079_4_, p_77079_6_, p_77079_8_, p_77079_9_);
   if(p_77079_1_.field_70992_bH != null) {
      float var10 = (float)p_77079_1_.field_70992_bH.field_70261_a + p_77079_9_;
      float var11 = MathHelper.func_76126_a(var10 * 0.2F) / 2.0F + 0.5F;
      var11 = (var11 * var11 + var11) * 0.2F;
      float var12 = (float)(p_77079_1_.field_70992_bH.field_70165_t - p_77079_1_.field_70165_t - (p_77079_1_.field_70169_q - p_77079_1_.field_70165_t) * (double)(1.0F - p_77079_9_));
      float var13 = (float)((double)var11 + p_77079_1_.field_70992_bH.field_70163_u - 1.0D - p_77079_1_.field_70163_u - (p_77079_1_.field_70167_r - p_77079_1_.field_70163_u) * (double)(1.0F - p_77079_9_));
      float var14 = (float)(p_77079_1_.field_70992_bH.field_70161_v - p_77079_1_.field_70161_v - (p_77079_1_.field_70166_s - p_77079_1_.field_70161_v) * (double)(1.0F - p_77079_9_));
      float var15 = MathHelper.func_76129_c(var12 * var12 + var14 * var14);
      float var16 = MathHelper.func_76129_c(var12 * var12 + var13 * var13 + var14 * var14);
      GL11.glPushMatrix();
      GL11.glTranslatef((float)p_77079_2_, (float)p_77079_4_ + 2.0F, (float)p_77079_6_);
      GL11.glRotatef((float)(-Math.atan2((double)var14, (double)var12)) * 180.0F / 3.1415927F - 90.0F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef((float)(-Math.atan2((double)var15, (double)var13)) * 180.0F / 3.1415927F - 90.0F, 1.0F, 0.0F, 0.0F);
      Tessellator var17 = Tessellator.field_78398_a;
      RenderHelper.func_74518_a();
      GL11.glDisable(2884);
      this.func_110776_a(field_110843_g);
      GL11.glShadeModel(7425);
      float var18 = 0.0F - ((float)p_77079_1_.field_70173_aa + p_77079_9_) * 0.01F;
      float var19 = MathHelper.func_76129_c(var12 * var12 + var13 * var13 + var14 * var14) / 32.0F - ((float)p_77079_1_.field_70173_aa + p_77079_9_) * 0.01F;
      var17.func_78371_b(5);
      byte var20 = 8;

      for(int var21 = 0; var21 <= var20; ++var21) {
         float var22 = MathHelper.func_76126_a((float)(var21 % var20) * 3.1415927F * 2.0F / (float)var20) * 0.75F;
         float var23 = MathHelper.func_76134_b((float)(var21 % var20) * 3.1415927F * 2.0F / (float)var20) * 0.75F;
         float var24 = (float)(var21 % var20) * 1.0F / (float)var20;
         var17.func_78378_d(0);
         var17.func_78374_a((double)(var22 * 0.2F), (double)(var23 * 0.2F), 0.0D, (double)var24, (double)var19);
         var17.func_78378_d(16777215);
         var17.func_78374_a((double)var22, (double)var23, (double)var16, (double)var24, (double)var18);
      }

      var17.func_78381_a();
      GL11.glEnable(2884);
      GL11.glShadeModel(7424);
      RenderHelper.func_74519_b();
      GL11.glPopMatrix();
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:45,代码来源:RenderDragon.java


注:本文中的net.minecraft.entity.boss.BossStatus.func_82824_a方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。