Advertisement
Guest User

Untitled

a guest
Oct 14th, 2017
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.81 KB | None | 0 0
  1. To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html.
  2. #################################################
  3. ForgeGradle 2.2-SNAPSHOT-d13a6c8
  4. https://github.com/MinecraftForge/ForgeGradle
  5. #################################################
  6. Powered by MCP unknown
  7. http://modcoderpack.com
  8. by: Searge, ProfMobius, Fesh0r,
  9. R4wk, ZeuX, IngisKahn, bspkrs
  10. #################################################
  11. :deobfCompileDummyTask
  12. :deobfProvidedDummyTask
  13. :getVersionJson
  14. :extractUserdev UP-TO-DATE
  15. :extractDependencyATs SKIPPED
  16. :extractMcpData SKIPPED
  17. :extractMcpMappings SKIPPED
  18. :genSrgs SKIPPED
  19. :downloadClient SKIPPED
  20. :downloadServer SKIPPED
  21. :splitServerJar SKIPPED
  22. :mergeJars SKIPPED
  23. :deobfMcSRG SKIPPED
  24. :decompileMc SKIPPED
  25. :fixMcSources
  26. Patching failed: minecraft\net\minecraft\util\math\Cartesian.java
  27. Hunk 1 failed! Cannot find hunk target
  28. }
  29.  
  30. public List<T> apply(@Nullable Object[] p_apply_1_) {
  31. - return Arrays.<T>asList((Object[])p_apply_1_);
  32. + return Arrays.<T>asList((T[])p_apply_1_);
  33. }
  34. }
  35.  
  36. File state
  37. package net.minecraft.util.math;
  38.  
  39. import com.google.common.base.Function;
  40. import com.google.common.collect.Iterables;
  41. import com.google.common.collect.Lists;
  42. import com.google.common.collect.UnmodifiableIterator;
  43. import java.lang.reflect.Array;
  44. import java.util.Arrays;
  45. import java.util.Collections;
  46. import java.util.Iterator;
  47. import java.util.List;
  48. import java.util.NoSuchElementException;
  49. import javax.annotation.Nullable;
  50.  
  51. public class Cartesian {
  52. public static <T> Iterable<T[]> func_179318_a(Class<T> p_179318_0_, Iterable<? extends Iterable<? extends T>> p_179318_1_) {
  53. return new Cartesian.Product(p_179318_0_, (Iterable[])func_179322_b(Iterable.class, p_179318_1_));
  54. }
  55.  
  56. public static <T> Iterable<List<T>> func_179321_a(Iterable<? extends Iterable<? extends T>> p_179321_0_) {
  57. return func_179323_b(func_179318_a(Object.class, p_179321_0_));
  58. }
  59.  
  60. private static <T> Iterable<List<T>> func_179323_b(Iterable<Object[]> p_179323_0_) {
  61. return Iterables.transform(p_179323_0_, new Cartesian.GetList());
  62. }
  63.  
  64. private static <T> T[] func_179322_b(Class<? super T> p_179322_0_, Iterable<? extends T> p_179322_1_) {
  65. List<T> list = Lists.<T>newArrayList();
  66.  
  67. for(T t : p_179322_1_) {
  68. list.add(t);
  69. }
  70.  
  71. return (T[])((Object[])list.toArray(func_179319_b(p_179322_0_, list.size())));
  72. }
  73.  
  74. private static <T> T[] func_179319_b(Class<? super T> p_179319_0_, int p_179319_1_) {
  75. return (T[])((Object[])((Object[])Array.newInstance(p_179319_0_, p_179319_1_)));
  76. }
  77.  
  78. static class GetList<T> implements Function<Object[], List<T>> {
  79. private GetList() {
  80. }
  81.  
  82. public List<T> apply(@Nullable Object[] p_apply_1_) {
  83. return Arrays.asList((Object[])p_apply_1_);
  84. }
  85. }
  86.  
  87. static class Product<T> implements Iterable<T[]> {
  88. private final Class<T> field_179429_a;
  89. private final Iterable<? extends T>[] field_179428_b;
  90.  
  91. private Product(Class<T> p_i46020_1_, Iterable<? extends T>[] p_i46020_2_) {
  92. this.field_179429_a = p_i46020_1_;
  93. this.field_179428_b = p_i46020_2_;
  94. }
  95.  
  96. public Iterator<T[]> iterator() {
  97. return (Iterator<T[]>)(this.field_179428_b.length <= 0?Collections.singletonList((Object[])Cartesian.func_179319_b(this.field_179429_a, 0)).iterator():new Cartesian.Product.ProductIterator(this.field_179429_a, this.field_179428_b));
  98. }
  99.  
  100. static class ProductIterator<T> extends UnmodifiableIterator<T[]> {
  101. private int field_179426_a;
  102. private final Iterable<? extends T>[] field_179424_b;
  103. private final Iterator<? extends T>[] field_179425_c;
  104. private final T[] field_179423_d;
  105.  
  106. private ProductIterator(Class<T> p_i46018_1_, Iterable<? extends T>[] p_i46018_2_) {
  107. this.field_179426_a = -2;
  108. this.field_179424_b = p_i46018_2_;
  109. this.field_179425_c = (Iterator[])Cartesian.func_179319_b(Iterator.class, this.field_179424_b.length);
  110.  
  111. for(int i = 0; i < this.field_179424_b.length; ++i) {
  112. this.field_179425_c[i] = p_i46018_2_[i].iterator();
  113. }
  114.  
  115. this.field_179423_d = Cartesian.func_179319_b(p_i46018_1_, this.field_179425_c.length);
  116. }
  117.  
  118. private void func_179422_b() {
  119. this.field_179426_a = -1;
  120. Arrays.fill(this.field_179425_c, (Object)null);
  121. Arrays.fill(this.field_179423_d, (Object)null);
  122. }
  123.  
  124. public boolean hasNext() {
  125. if(this.field_179426_a == -2) {
  126. this.field_179426_a = 0;
  127.  
  128. for(Iterator<? extends T> iterator1 : this.field_179425_c) {
  129. if(!iterator1.hasNext()) {
  130. this.func_179422_b();
  131. break;
  132. }
  133. }
  134.  
  135. return true;
  136. } else {
  137. if(this.field_179426_a >= this.field_179425_c.length) {
  138. for(this.field_179426_a = this.field_179425_c.length - 1; this.field_179426_a >= 0; --this.field_179426_a) {
  139. Iterator<? extends T> iterator = this.field_179425_c[this.field_179426_a];
  140. if(iterator.hasNext()) {
  141. break;
  142. }
  143.  
  144. if(this.field_179426_a == 0) {
  145. this.func_179422_b();
  146. break;
  147. }
  148.  
  149. iterator = this.field_179424_b[this.field_179426_a].iterator();
  150. this.field_179425_c[this.field_179426_a] = iterator;
  151. if(!iterator.hasNext()) {
  152. this.func_179422_b();
  153. break;
  154. }
  155. }
  156. }
  157.  
  158. return this.field_179426_a >= 0;
  159. }
  160. }
  161.  
  162. public T[] next() {
  163. if(!this.hasNext()) {
  164. throw new NoSuchElementException();
  165. } else {
  166. while(this.field_179426_a < this.field_179425_c.length) {
  167. this.field_179423_d[this.field_179426_a] = this.field_179425_c[this.field_179426_a].next();
  168. ++this.field_179426_a;
  169. }
  170.  
  171. return (T[])((Object[])this.field_179423_d.clone());
  172. }
  173. }
  174. }
  175. }
  176. }
  177.  
  178. Patching failed: minecraft\net\minecraft\client\renderer\texture\TextureManager.java
  179. Hunk 2 failed! Cannot find hunk target
  180. this.field_110585_a.put(p_110579_1_, (ITextureObject)p_110579_2_);
  181. flag = false;
  182. } catch (Throwable throwable) {
  183. + final ITextureObject p_110579_2_f = p_110579_2_;
  184. CrashReport crashreport = CrashReport.func_85055_a(throwable, "Registering texture");
  185. CrashReportCategory crashreportcategory = crashreport.func_85058_a("Resource location being registered");
  186. crashreportcategory.func_71507_a("Resource location", p_110579_1_);
  187. crashreportcategory.func_189529_a("Texture object class", new ICrashReportDetail<String>() {
  188. public String call() throws Exception {
  189. - return p_110579_2_.getClass().getName();
  190. + return p_110579_2_f.getClass().getName();
  191. }
  192. });
  193. throw new ReportedException(crashreport);
  194. File state
  195. package net.minecraft.client.renderer.texture;
  196.  
  197. import com.google.common.collect.Lists;
  198. import com.google.common.collect.Maps;
  199. import java.io.IOException;
  200. import java.util.List;
  201. import java.util.Map;
  202. import java.util.Map.Entry;
  203. import net.minecraft.client.renderer.texture.DynamicTexture;
  204. import net.minecraft.client.renderer.texture.ITextureObject;
  205. import net.minecraft.client.renderer.texture.ITickable;
  206. import net.minecraft.client.renderer.texture.ITickableTextureObject;
  207. import net.minecraft.client.renderer.texture.SimpleTexture;
  208. import net.minecraft.client.renderer.texture.TextureUtil;
  209. import net.minecraft.client.resources.IResourceManager;
  210. import net.minecraft.client.resources.IResourceManagerReloadListener;
  211. import net.minecraft.crash.CrashReport;
  212. import net.minecraft.crash.CrashReportCategory;
  213. import net.minecraft.crash.ICrashReportDetail;
  214. import net.minecraft.util.ReportedException;
  215. import net.minecraft.util.ResourceLocation;
  216. import net.minecraftforge.fml.relauncher.Side;
  217. import net.minecraftforge.fml.relauncher.SideOnly;
  218. import org.apache.logging.log4j.LogManager;
  219. import org.apache.logging.log4j.Logger;
  220.  
  221. @SideOnly(Side.CLIENT)
  222. public class TextureManager implements ITickable, IResourceManagerReloadListener {
  223. private static final Logger field_147646_a = LogManager.getLogger();
  224. private final Map<ResourceLocation, ITextureObject> field_110585_a = Maps.<ResourceLocation, ITextureObject>newHashMap();
  225. private final List<ITickable> field_110583_b = Lists.<ITickable>newArrayList();
  226. private final Map<String, Integer> field_110584_c = Maps.<String, Integer>newHashMap();
  227. private final IResourceManager field_110582_d;
  228.  
  229. public TextureManager(IResourceManager p_i1284_1_) {
  230. this.field_110582_d = p_i1284_1_;
  231. }
  232.  
  233. public void func_110577_a(ResourceLocation p_110577_1_) {
  234. ITextureObject itextureobject = (ITextureObject)this.field_110585_a.get(p_110577_1_);
  235. if(itextureobject == null) {
  236. itextureobject = new SimpleTexture(p_110577_1_);
  237. this.func_110579_a(p_110577_1_, itextureobject);
  238. }
  239.  
  240. TextureUtil.func_94277_a(itextureobject.func_110552_b());
  241. }
  242.  
  243. public boolean func_110580_a(ResourceLocation p_110580_1_, ITickableTextureObject p_110580_2_) {
  244. if(this.func_110579_a(p_110580_1_, p_110580_2_)) {
  245. this.field_110583_b.add(p_110580_2_);
  246. return true;
  247. } else {
  248. return false;
  249. }
  250. }
  251.  
  252. public boolean func_110579_a(ResourceLocation p_110579_1_, final ITextureObject p_110579_2_) {
  253. boolean flag = true;
  254.  
  255. try {
  256. ((ITextureObject)p_110579_2_).func_110551_a(this.field_110582_d);
  257. } catch (IOException ioexception) {
  258. field_147646_a.warn("Failed to load texture: {}", new Object[]{p_110579_1_, ioexception});
  259. p_110579_2_ = TextureUtil.field_111001_a;
  260. this.field_110585_a.put(p_110579_1_, p_110579_2_);
  261. flag = false;
  262. } catch (Throwable throwable) {
  263. CrashReport crashreport = CrashReport.func_85055_a(throwable, "Registering texture");
  264. CrashReportCategory crashreportcategory = crashreport.func_85058_a("Resource location being registered");
  265. crashreportcategory.func_71507_a("Resource location", p_110579_1_);
  266. crashreportcategory.func_189529_a("Texture object class", new ICrashReportDetail<String>() {
  267. public String call() throws Exception {
  268. return p_110579_2_.getClass().getName();
  269. }
  270. });
  271. throw new ReportedException(crashreport);
  272. }
  273.  
  274. this.field_110585_a.put(p_110579_1_, p_110579_2_);
  275. return flag;
  276. }
  277.  
  278. public ITextureObject func_110581_b(ResourceLocation p_110581_1_) {
  279. return (ITextureObject)this.field_110585_a.get(p_110581_1_);
  280. }
  281.  
  282. public ResourceLocation func_110578_a(String p_110578_1_, DynamicTexture p_110578_2_) {
  283. Integer integer = (Integer)this.field_110584_c.get(p_110578_1_);
  284. if(integer == null) {
  285. integer = Integer.valueOf(1);
  286. } else {
  287. integer = Integer.valueOf(integer.intValue() + 1);
  288. }
  289.  
  290. this.field_110584_c.put(p_110578_1_, integer);
  291. ResourceLocation resourcelocation = new ResourceLocation(String.format("dynamic/%s_%d", new Object[]{p_110578_1_, integer}));
  292. this.func_110579_a(resourcelocation, p_110578_2_);
  293. return resourcelocation;
  294. }
  295.  
  296. public void func_110550_d() {
  297. for(ITickable itickable : this.field_110583_b) {
  298. itickable.func_110550_d();
  299. }
  300.  
  301. }
  302.  
  303. public void func_147645_c(ResourceLocation p_147645_1_) {
  304. ITextureObject itextureobject = this.func_110581_b(p_147645_1_);
  305. if(itextureobject != null) {
  306. TextureUtil.func_147942_a(itextureobject.func_110552_b());
  307. }
  308.  
  309. }
  310.  
  311. public void func_110549_a(IResourceManager p_110549_1_) {
  312. for(Entry<ResourceLocation, ITextureObject> entry : this.field_110585_a.entrySet()) {
  313. this.func_110579_a((ResourceLocation)entry.getKey(), (ITextureObject)entry.getValue());
  314. }
  315.  
  316. }
  317. }
  318.  
  319. :fixMcSources FAILED
  320.  
  321. FAILURE: Build failed with an exception.
  322.  
  323. * What went wrong:
  324. Execution failed for task ':fixMcSources'.
  325. > com.cloudbees.diff.PatchException: Cannot find hunk target
  326.  
  327. * Try:
  328. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  329.  
  330. BUILD FAILED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement