SHARE
TWEET

Untitled

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