Guest User

error

a guest
Aug 24th, 2017
98
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.       return (T[])((Object[])list.toArray(func_179319_b(p_179322_0_, list.size()
  2. )));
  3.    }
  4.  
  5.    private static <T> T[] func_179319_b(Class<? super T> p_179319_0_, int p_1793
  6. 19_1_) {
  7.       return (T[])((Object[])((Object[])Array.newInstance(p_179319_0_, p_179319_
  8. 1_)));
  9.    }
  10.  
  11.    static class GetList<T> implements Function<Object[], List<T>> {
  12.       private GetList() {
  13.       }
  14.  
  15.       public List<T> apply(@Nullable Object[] p_apply_1_) {
  16.          return Arrays.asList((Object[])p_apply_1_);
  17.       }
  18.    }
  19.  
  20.    static class Product<T> implements Iterable<T[]> {
  21.       private final Class<T> field_179429_a;
  22.       private final Iterable<? extends T>[] field_179428_b;
  23.  
  24.       private Product(Class<T> p_i46020_1_, Iterable<? extends T>[] p_i46020_2_)
  25.  {
  26.          this.field_179429_a = p_i46020_1_;
  27.          this.field_179428_b = p_i46020_2_;
  28.       }
  29.  
  30.       public Iterator<T[]> iterator() {
  31.          return (Iterator<T[]>)(this.field_179428_b.length <= 0?Collections.sing
  32. letonList((Object[])Cartesian.func_179319_b(this.field_179429_a, 0)).iterator():
  33. new Cartesian.Product.ProductIterator(this.field_179429_a, this.field_179428_b))
  34. ;
  35.       }
  36.  
  37.       static class ProductIterator<T> extends UnmodifiableIterator<T[]> {
  38.          private int field_179426_a;
  39.          private final Iterable<? extends T>[] field_179424_b;
  40.          private final Iterator<? extends T>[] field_179425_c;
  41.          private final T[] field_179423_d;
  42.  
  43.          private ProductIterator(Class<T> p_i46018_1_, Iterable<? extends T>[] p
  44. _i46018_2_) {
  45.             this.field_179426_a = -2;
  46.             this.field_179424_b = p_i46018_2_;
  47.             this.field_179425_c = (Iterator[])Cartesian.func_179319_b(Iterator.c
  48. lass, this.field_179424_b.length);
  49.  
  50.             for(int i = 0; i < this.field_179424_b.length; ++i) {
  51.                this.field_179425_c[i] = p_i46018_2_[i].iterator();
  52.             }
  53.  
  54.             this.field_179423_d = Cartesian.func_179319_b(p_i46018_1_, this.fiel
  55. d_179425_c.length);
  56.          }
  57.  
  58.          private void func_179422_b() {
  59.             this.field_179426_a = -1;
  60.             Arrays.fill(this.field_179425_c, (Object)null);
  61.             Arrays.fill(this.field_179423_d, (Object)null);
  62.          }
  63.  
  64.          public boolean hasNext() {
  65.             if(this.field_179426_a == -2) {
  66.                this.field_179426_a = 0;
  67.  
  68.                for(Iterator<? extends T> iterator1 : this.field_179425_c) {
  69.                   if(!iterator1.hasNext()) {
  70.                      this.func_179422_b();
  71.                      break;
  72.                   }
  73.                }
  74.  
  75.                return true;
  76.             } else {
  77.                if(this.field_179426_a >= this.field_179425_c.length) {
  78.                   for(this.field_179426_a = this.field_179425_c.length - 1; this
  79. .field_179426_a >= 0; --this.field_179426_a) {
  80.                      Iterator<? extends T> iterator = this.field_179425_c[this.f
  81. ield_179426_a];
  82.                      if(iterator.hasNext()) {
  83.                         break;
  84.                      }
  85.  
  86.                      if(this.field_179426_a == 0) {
  87.                         this.func_179422_b();
  88.                         break;
  89.                      }
  90.  
  91.                      iterator = this.field_179424_b[this.field_179426_a].iterato
  92. r();
  93.                      this.field_179425_c[this.field_179426_a] = iterator;
  94.                      if(!iterator.hasNext()) {
  95.                         this.func_179422_b();
  96.                         break;
  97.                      }
  98.                   }
  99.                }
  100.  
  101.                return this.field_179426_a >= 0;
  102.             }
  103.          }
  104.  
  105.          public T[] next() {
  106.             if(!this.hasNext()) {
  107.                throw new NoSuchElementException();
  108.             } else {
  109.                while(this.field_179426_a < this.field_179425_c.length) {
  110.                   this.field_179423_d[this.field_179426_a] = this.field_179425_c
  111. [this.field_179426_a].next();
  112.                   ++this.field_179426_a;
  113.                }
  114.  
  115.                return (T[])((Object[])this.field_179423_d.clone());
  116.             }
  117.          }
  118.       }
  119.    }
  120. }
  121.  
  122. Patching failed: minecraft\net\minecraft\client\renderer\texture\TextureManager.
  123. java
  124. Hunk 2 failed! Cannot find hunk target
  125.           this.field_110585_a.put(p_110579_1_, (ITextureObject)p_110579_2_);
  126.           flag = false;
  127.        } catch (Throwable throwable) {
  128. +        final ITextureObject p_110579_2_f = p_110579_2_;
  129.           CrashReport crashreport = CrashReport.func_85055_a(throwable, "Registe
  130. ring texture");
  131.           CrashReportCategory crashreportcategory = crashreport.func_85058_a("Re
  132. source location being registered");
  133.           crashreportcategory.func_71507_a("Resource location", p_110579_1_);
  134.           crashreportcategory.func_189529_a("Texture object class", new ICrashRe
  135. portDetail<String>() {
  136.              public String call() throws Exception {
  137. -               return p_110579_2_.getClass().getName();
  138. +               return p_110579_2_f.getClass().getName();
  139.              }
  140.           });
  141.           throw new ReportedException(crashreport);
  142. File state
  143. package net.minecraft.client.renderer.texture;
  144.  
  145. import com.google.common.collect.Lists;
  146. import com.google.common.collect.Maps;
  147. import java.io.IOException;
  148. import java.util.List;
  149. import java.util.Map;
  150. import java.util.Map.Entry;
  151. import net.minecraft.client.renderer.texture.DynamicTexture;
  152. import net.minecraft.client.renderer.texture.ITextureObject;
  153. import net.minecraft.client.renderer.texture.ITickable;
  154. import net.minecraft.client.renderer.texture.ITickableTextureObject;
  155. import net.minecraft.client.renderer.texture.SimpleTexture;
  156. import net.minecraft.client.renderer.texture.TextureUtil;
  157. import net.minecraft.client.resources.IResourceManager;
  158. import net.minecraft.client.resources.IResourceManagerReloadListener;
  159. import net.minecraft.crash.CrashReport;
  160. import net.minecraft.crash.CrashReportCategory;
  161. import net.minecraft.crash.ICrashReportDetail;
  162. import net.minecraft.util.ReportedException;
  163. import net.minecraft.util.ResourceLocation;
  164. import net.minecraftforge.fml.relauncher.Side;
  165. import net.minecraftforge.fml.relauncher.SideOnly;
  166. import org.apache.logging.log4j.LogManager;
  167. import org.apache.logging.log4j.Logger;
  168.  
  169. @SideOnly(Side.CLIENT)
  170. public class TextureManager implements ITickable, IResourceManagerReloadListener
  171.  {
  172.    private static final Logger field_147646_a = LogManager.getLogger();
  173.    private final Map<ResourceLocation, ITextureObject> field_110585_a = Maps.<Re
  174. sourceLocation, ITextureObject>newHashMap();
  175.    private final List<ITickable> field_110583_b = Lists.<ITickable>newArrayList(
  176. );
  177.    private final Map<String, Integer> field_110584_c = Maps.<String, Integer>new
  178. HashMap();
  179.    private IResourceManager field_110582_d;
  180.  
  181.    public TextureManager(IResourceManager p_i1284_1_) {
  182.       this.field_110582_d = p_i1284_1_;
  183.    }
  184.  
  185.    public void func_110577_a(ResourceLocation p_110577_1_) {
  186.       ITextureObject itextureobject = (ITextureObject)this.field_110585_a.get(p_
  187. 110577_1_);
  188.       if(itextureobject == null) {
  189.          itextureobject = new SimpleTexture(p_110577_1_);
  190.          this.func_110579_a(p_110577_1_, itextureobject);
  191.       }
  192.  
  193.       TextureUtil.func_94277_a(itextureobject.func_110552_b());
  194.    }
  195.  
  196.    public boolean func_110580_a(ResourceLocation p_110580_1_, ITickableTextureOb
  197. ject p_110580_2_) {
  198.       if(this.func_110579_a(p_110580_1_, p_110580_2_)) {
  199.          this.field_110583_b.add(p_110580_2_);
  200.          return true;
  201.       } else {
  202.          return false;
  203.       }
  204.    }
  205.  
  206.    public boolean func_110579_a(ResourceLocation p_110579_1_, final ITextureObje
  207. ct p_110579_2_) {
  208.       boolean flag = true;
  209.  
  210.       try {
  211.          ((ITextureObject)p_110579_2_).func_110551_a(this.field_110582_d);
  212.       } catch (IOException ioexception) {
  213.          field_147646_a.warn((String)("Failed to load texture: " + p_110579_1_),
  214.  (Throwable)ioexception);
  215.          p_110579_2_ = TextureUtil.field_111001_a;
  216.          this.field_110585_a.put(p_110579_1_, p_110579_2_);
  217.          flag = false;
  218.       } catch (Throwable throwable) {
  219.          CrashReport crashreport = CrashReport.func_85055_a(throwable, "Register
  220. ing texture");
  221.          CrashReportCategory crashreportcategory = crashreport.func_85058_a("Res
  222. ource location being registered");
  223.          crashreportcategory.func_71507_a("Resource location", p_110579_1_);
  224.          crashreportcategory.func_189529_a("Texture object class", new ICrashRep
  225. ortDetail<String>() {
  226.             public String call() throws Exception {
  227.                return p_110579_2_.getClass().getName();
  228.             }
  229.          });
  230.          throw new ReportedException(crashreport);
  231.       }
  232.  
  233.       this.field_110585_a.put(p_110579_1_, p_110579_2_);
  234.       return flag;
  235.    }
  236.  
  237.    public ITextureObject func_110581_b(ResourceLocation p_110581_1_) {
  238.       return (ITextureObject)this.field_110585_a.get(p_110581_1_);
  239.    }
  240.  
  241.    public ResourceLocation func_110578_a(String p_110578_1_, DynamicTexture p_11
  242. 0578_2_) {
  243.       Integer integer = (Integer)this.field_110584_c.get(p_110578_1_);
  244.       if(integer == null) {
  245.          integer = Integer.valueOf(1);
  246.       } else {
  247.          integer = Integer.valueOf(integer.intValue() + 1);
  248.       }
  249.  
  250.       this.field_110584_c.put(p_110578_1_, integer);
  251.       ResourceLocation resourcelocation = new ResourceLocation(String.format("dy
  252. namic/%s_%d", new Object[]{p_110578_1_, integer}));
  253.       this.func_110579_a(resourcelocation, p_110578_2_);
  254.       return resourcelocation;
  255.    }
  256.  
  257.    public void func_110550_d() {
  258.       for(ITickable itickable : this.field_110583_b) {
  259.          itickable.func_110550_d();
  260.       }
  261.  
  262.    }
  263.  
  264.    public void func_147645_c(ResourceLocation p_147645_1_) {
  265.       ITextureObject itextureobject = this.func_110581_b(p_147645_1_);
  266.       if(itextureobject != null) {
  267.          TextureUtil.func_147942_a(itextureobject.func_110552_b());
  268.       }
  269.  
  270.    }
  271.  
  272.    public void func_110549_a(IResourceManager p_110549_1_) {
  273.       for(Entry<ResourceLocation, ITextureObject> entry : this.field_110585_a.en
  274. trySet()) {
  275.          this.func_110579_a((ResourceLocation)entry.getKey(), (ITextureObject)en
  276. try.getValue());
  277.       }
  278.  
  279.    }
  280. }
  281.  
  282. :fixMcSources FAILED
  283.  
  284. FAILURE: Build failed with an exception.
  285.  
  286. * What went wrong:
  287. Execution failed for task ':fixMcSources'.
  288. > com.cloudbees.diff.PatchException: Cannot find hunk target
  289.  
  290. * Try:
  291. Run with --stacktrace option to get the stack trace. Run with --info or --debug
  292. option to get more log output.
  293.  
  294. BUILD FAILED
  295.  
  296. Total time: 57.12 secs
RAW Paste Data