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


Java TextureUtil.func_110998_a方法代码示例

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


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

示例1: func_94219_l

import net.minecraft.client.renderer.texture.TextureUtil; //导入方法依赖的package包/类
public void func_94219_l() {
   ++this.field_110983_h;
   if(this.field_110983_h >= this.field_110982_k.func_110472_a(this.field_110973_g)) {
      int var1 = this.field_110982_k.func_110468_c(this.field_110973_g);
      int var2 = this.field_110982_k.func_110473_c() == 0?this.field_110976_a.size():this.field_110982_k.func_110473_c();
      this.field_110973_g = (this.field_110973_g + 1) % var2;
      this.field_110983_h = 0;
      int var3 = this.field_110982_k.func_110468_c(this.field_110973_g);
      if(var1 != var3 && var3 >= 0 && var3 < this.field_110976_a.size()) {
         TextureUtil.func_110998_a((int[])this.field_110976_a.get(var3), this.field_130223_c, this.field_130224_d, this.field_110975_c, this.field_110974_d, false, false);
      }
   }

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

示例2: func_94241_a

import net.minecraft.client.renderer.texture.TextureUtil; //导入方法依赖的package包/类
public void func_94241_a(World p_94241_1_, double p_94241_2_, double p_94241_4_, double p_94241_6_, boolean p_94241_8_, boolean p_94241_9_) {
   if(!this.field_110976_a.isEmpty()) {
      double var10 = 0.0D;
      if(p_94241_1_ != null && !p_94241_8_) {
         ChunkCoordinates var12 = p_94241_1_.func_72861_E();
         double var13 = (double)var12.field_71574_a - p_94241_2_;
         double var15 = (double)var12.field_71573_c - p_94241_4_;
         p_94241_6_ %= 360.0D;
         var10 = -((p_94241_6_ - 90.0D) * 3.141592653589793D / 180.0D - Math.atan2(var15, var13));
         if(!p_94241_1_.field_73011_w.func_76569_d()) {
            var10 = Math.random() * 3.1415927410125732D * 2.0D;
         }
      }

      if(p_94241_9_) {
         this.field_94244_i = var10;
      } else {
         double var17;
         for(var17 = var10 - this.field_94244_i; var17 < -3.141592653589793D; var17 += 6.283185307179586D) {
            ;
         }

         while(var17 >= 3.141592653589793D) {
            var17 -= 6.283185307179586D;
         }

         if(var17 < -1.0D) {
            var17 = -1.0D;
         }

         if(var17 > 1.0D) {
            var17 = 1.0D;
         }

         this.field_94242_j += var17 * 0.1D;
         this.field_94242_j *= 0.8D;
         this.field_94244_i += this.field_94242_j;
      }

      int var18;
      for(var18 = (int)((this.field_94244_i / 6.283185307179586D + 1.0D) * (double)this.field_110976_a.size()) % this.field_110976_a.size(); var18 < 0; var18 = (var18 + this.field_110976_a.size()) % this.field_110976_a.size()) {
         ;
      }

      if(var18 != this.field_110973_g) {
         this.field_110973_g = var18;
         TextureUtil.func_110998_a((int[])this.field_110976_a.get(this.field_110973_g), this.field_130223_c, this.field_130224_d, this.field_110975_c, this.field_110974_d, false, false);
      }

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

示例3: func_94219_l

import net.minecraft.client.renderer.texture.TextureUtil; //导入方法依赖的package包/类
public void func_94219_l() {
   if(!this.field_110976_a.isEmpty()) {
      Minecraft var1 = Minecraft.func_71410_x();
      double var2 = 0.0D;
      if(var1.field_71441_e != null && var1.field_71439_g != null) {
         float var4 = var1.field_71441_e.func_72826_c(1.0F);
         var2 = (double)var4;
         if(!var1.field_71441_e.field_73011_w.func_76569_d()) {
            var2 = Math.random();
         }
      }

      double var7;
      for(var7 = var2 - this.field_94239_h; var7 < -0.5D; ++var7) {
         ;
      }

      while(var7 >= 0.5D) {
         --var7;
      }

      if(var7 < -1.0D) {
         var7 = -1.0D;
      }

      if(var7 > 1.0D) {
         var7 = 1.0D;
      }

      this.field_94240_i += var7 * 0.1D;
      this.field_94240_i *= 0.8D;
      this.field_94239_h += this.field_94240_i;

      int var6;
      for(var6 = (int)((this.field_94239_h + 1.0D) * (double)this.field_110976_a.size()) % this.field_110976_a.size(); var6 < 0; var6 = (var6 + this.field_110976_a.size()) % this.field_110976_a.size()) {
         ;
      }

      if(var6 != this.field_110973_g) {
         this.field_110973_g = var6;
         TextureUtil.func_110998_a((int[])this.field_110976_a.get(this.field_110973_g), this.field_130223_c, this.field_130224_d, this.field_110975_c, this.field_110974_d, false, false);
      }

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

示例4: func_110571_b

import net.minecraft.client.renderer.texture.TextureUtil; //导入方法依赖的package包/类
public void func_110571_b(ResourceManager p_110571_1_) {
   int var2 = Minecraft.func_71369_N();
   Stitcher var3 = new Stitcher(var2, var2, true);
   this.field_94252_e.clear();
   this.field_94258_i.clear();
   Iterator var4 = this.field_110574_e.entrySet().iterator();

   while(var4.hasNext()) {
      Entry var5 = (Entry)var4.next();
      ResourceLocation var6 = new ResourceLocation((String)var5.getKey());
      TextureAtlasSprite var7 = (TextureAtlasSprite)var5.getValue();
      ResourceLocation var8 = new ResourceLocation(var6.func_110624_b(), String.format("%s/%s%s", new Object[]{this.field_94254_c, var6.func_110623_a(), ".png"}));

      try {
         var7.func_130100_a(p_110571_1_.func_110536_a(var8));
      } catch (RuntimeException var13) {
         Minecraft.func_71410_x().func_98033_al().func_98232_c(String.format("Unable to parse animation metadata from %s: %s", new Object[]{var8, var13.getMessage()}));
         continue;
      } catch (IOException var14) {
         Minecraft.func_71410_x().func_98033_al().func_98232_c("Using missing texture, unable to load: " + var8);
         continue;
      }

      var3.func_110934_a(var7);
   }

   var3.func_110934_a(this.field_94249_f);

   try {
      var3.func_94305_f();
   } catch (StitcherException var12) {
      throw var12;
   }

   TextureUtil.func_110991_a(this.func_110552_b(), var3.func_110935_a(), var3.func_110936_b());
   HashMap var15 = Maps.newHashMap(this.field_110574_e);
   Iterator var16 = var3.func_94309_g().iterator();

   TextureAtlasSprite var17;
   while(var16.hasNext()) {
      var17 = (TextureAtlasSprite)var16.next();
      String var18 = var17.func_94215_i();
      var15.remove(var18);
      this.field_94252_e.put(var18, var17);

      try {
         TextureUtil.func_110998_a(var17.func_110965_a(0), var17.func_94211_a(), var17.func_94216_b(), var17.func_130010_a(), var17.func_110967_i(), false, false);
      } catch (Throwable var11) {
         CrashReport var9 = CrashReport.func_85055_a(var11, "Stitching texture atlas");
         CrashReportCategory var10 = var9.func_85058_a("Texture being stitched together");
         var10.func_71507_a("Atlas path", this.field_94254_c);
         var10.func_71507_a("Sprite", var17);
         throw new ReportedException(var9);
      }

      if(var17.func_130098_m()) {
         this.field_94258_i.add(var17);
      } else {
         var17.func_130103_l();
      }
   }

   var16 = var15.values().iterator();

   while(var16.hasNext()) {
      var17 = (TextureAtlasSprite)var16.next();
      var17.func_94217_a(this.field_94249_f);
   }

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


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