本文整理匯總了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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}