I hereby claim:
- I am matthewprenger on github.
- I am matthewprenger (https://keybase.io/matthewprenger) on keybase.
- I have a public key ASCKOpzZUsvczpTYTLKsLUyDG9srEJau7rGKFwlNlgGLago
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
diff -Naur forge_j8/build/tmp/decompileJar/net/minecraft/advancements/Advancement.java forge_j9/build/tmp/decompileJar/net/minecraft/advancements/Advancement.java | |
--- forge_j8/build/tmp/decompileJar/net/minecraft/advancements/Advancement.java 2017-09-21 20:37:00.000000000 -0500 | |
+++ forge_j9/build/tmp/decompileJar/net/minecraft/advancements/Advancement.java 2017-09-21 20:39:04.000000000 -0500 | |
@@ -148,7 +148,7 @@ | |
if (this.field_192061_a == null) { | |
return true; | |
} else { | |
- this.field_192062_b = p_192058_1_.apply(this.field_192061_a); | |
+ this.field_192062_b = (Advancement)p_192058_1_.apply(this.field_192061_a); | |
return this.field_192062_b != null; |
Reading 200 jars | |
Total 2434 fields used | |
Total 3826 methods used | |
Fields: | |
+-----------------+------------------------------------------+--------+ | |
| Srg | Mapped (null == unmapped) | Usages | | |
+-----------------+------------------------------------------+--------+ | |
| field_150350_a | AIR | 14088 | | |
| field_77994_a | stackSize | 9572 | |
Important note: Your code must compile on the old mappings, and the obfSourceJar must be enabled (it is by default) | |
1. Download a copy of the new methods.csv and fields.csv from http://export.mcpbot.bspk.rs/ to the root of your project. | |
2. Add the following gradle script to your build.gradle. | |
3. Run 'gradle(w) updateMappings'. | |
4. Do a diff between src/main/java/ and src_remapped/main/java/ to make sure everything looks right. | |
5. replace src/main/java/* with src_remapped/main/java/* |
Signing your jar can help you and your users verify that the jar they have is an authentic jar created by you. This will help a lot, but is not 100% effective. If someone really wants to get around it, they can.
Let's start off by creating a new keystore. A keystore is the private database file that holds the information needed to sign a jar. This command requires a correctly setup Java Development Kit.
keytool -genkey -alias Matthew -keyalg RSA -keysize 2048 -keystore keystore.jks
def buildUrl = System.getenv().BUILD_URL | |
if (buildUrl != null) { | |
def auth = "<USER>:<APITOKEN>".getBytes().encodeBase64().toString() | |
def url = new URL("$buildUrl/api/xml?depth=20").openConnection() | |
url.setRequestProperty("Authorization", "Basic " + auth) | |
String data = url.getInputStream().text | |
def changelog = "" |
// The URL for each mod often changes based on the version you want. | |
// To find the correct URL, download the (DEOBFUSCATED!) mod from CurseForge, | |
// and look in your browser's download history to find the URL it came from. | |
// Use the numbers from that in place of the ones below | |
repositories { | |
ivy { | |
name "CoFHLib" | |
artifactPattern "http://addons-origin.cursecdn.com/files/2229/525/[module]-[revision].[ext]" | |
} |