-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from ImUrX/dev
update to 1.18.2
- Loading branch information
Showing
18 changed files
with
226 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
architectury { | ||
common(rootProject.enabled_platforms.split(",")) | ||
} | ||
|
||
dependencies { | ||
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}" | ||
modApi "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api_version}" | ||
// Remove the next line if you don't want to depend on the API | ||
//modApi "dev.architectury:architectury-fabric:${rootProject.architectury_version}" | ||
|
||
compileClasspath(project(path: ":common", configuration: "namedElements")) { transitive false } | ||
} |
9 changes: 9 additions & 0 deletions
9
...ike/src/main/java/io/github/imurx/screenshotcopy/fabriclike/ScreenshotCopyFabricLike.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package io.github.imurx.screenshotcopy.fabriclike; | ||
|
||
import io.github.imurx.screenshotcopy.fabriclike.ScreenshotCopyFabricLike; | ||
|
||
public class ScreenshotCopyFabricLike { | ||
public static void init() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,5 @@ | |
], | ||
"injectors": { | ||
"defaultRequire": 1 | ||
}, | ||
"minVersion": "0.8" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
org.gradle.jvmargs=-Xmx2048M | ||
|
||
minecraft_version=1.18 | ||
minecraft_version=1.18.2 | ||
enabled_platforms=quilt,fabric,forge | ||
|
||
archives_base_name=screenshotcopy | ||
mod_version=1.0.0 | ||
mod_version=1.1.0 | ||
maven_group=io.github.imurx | ||
|
||
cloth_config_version=6.1.48 | ||
arboard_version=1.0.2 | ||
cloth_config_version=6.2.62 | ||
arboard_version=1.1.0 | ||
|
||
fabric_loader_version=0.12.12 | ||
fabric_api_version=0.46.1+1.18 | ||
mod_menu_version=3.0.1 | ||
fabrishot_version=1.6.0 | ||
fabric_loader_version=0.14.6 | ||
fabric_api_version=0.53.0+1.18.2 | ||
mod_menu_version=3.2.2 | ||
fabrishot_version=1.7.0 | ||
|
||
forge_version=1.18-38.0.17 | ||
forge_version=1.18.2-40.1.19 | ||
|
||
quilt_loader_version=0.16.0 | ||
quilt_fabric_api_version=1.0.0-beta.13+0.51.1-1.18.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
plugins { | ||
id "com.github.johnrengelman.shadow" version "7.1.2" | ||
} | ||
|
||
repositories { | ||
maven { url "https://maven.quiltmc.org/repository/release/" } | ||
} | ||
|
||
architectury { | ||
platformSetupLoomIde() | ||
loader("quilt") | ||
} | ||
|
||
configurations { | ||
common | ||
shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this. | ||
compileClasspath.extendsFrom common | ||
runtimeClasspath.extendsFrom common | ||
developmentQuilt.extendsFrom common | ||
} | ||
|
||
dependencies { | ||
modImplementation "org.quiltmc:quilt-loader:${rootProject.quilt_loader_version}" | ||
modApi "org.quiltmc.quilted-fabric-api:quilted-fabric-api:${rootProject.quilt_fabric_api_version}" | ||
// Remove the next few lines if you don't want to depend on the API | ||
/*modApi("dev.architectury:architectury-fabric:${rootProject.architectury_version}") { | ||
// We must not pull Fabric Loader from Architectury Fabric | ||
exclude group: "net.fabricmc" | ||
exclude group: "net.fabricmc.fabric-api" | ||
}*/ | ||
|
||
common(project(path: ":common", configuration: "namedElements")) { transitive false } | ||
shadowCommon(project(path: ":common", configuration: "transformProductionQuilt")) { transitive false } | ||
common(project(path: ":fabric-like", configuration: "namedElements")) { transitive false } | ||
shadowCommon(project(path: ":fabric-like", configuration: "transformProductionQuilt")) { transitive false } | ||
} | ||
|
||
processResources { | ||
inputs.property "group", rootProject.maven_group | ||
inputs.property "version", project.version | ||
|
||
filesMatching("quilt.mod.json") { | ||
expand "group": rootProject.maven_group, | ||
"version": project.version | ||
} | ||
} | ||
|
||
shadowJar { | ||
exclude "architectury.common.json" | ||
|
||
configurations = [project.configurations.shadowCommon] | ||
classifier "dev-shadow" | ||
} | ||
|
||
remapJar { | ||
injectAccessWidener = true | ||
input.set shadowJar.archiveFile | ||
dependsOn shadowJar | ||
classifier null | ||
} | ||
|
||
jar { | ||
classifier "dev" | ||
} | ||
|
||
sourcesJar { | ||
def commonSources = project(":common").sourcesJar | ||
dependsOn commonSources | ||
from commonSources.archiveFile.map { zipTree(it) } | ||
} | ||
|
||
components.java { | ||
withVariantsFromConfiguration(project.configurations.shadowRuntimeElements) { | ||
skip() | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenQuilt(MavenPublication) { | ||
artifactId = rootProject.archives_base_name + "-" + project.name | ||
from components.java | ||
} | ||
} | ||
|
||
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. | ||
repositories { | ||
// Add repositories to publish to here. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
loom.platform=quilt |
14 changes: 14 additions & 0 deletions
14
quilt/src/main/java/io/github/imurx/screenshotcopy/fabric/ExampleExpectPlatformImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package io.github.imurx.screenshotcopy.fabric; | ||
|
||
import org.quiltmc.loader.api.QuiltLoader; | ||
|
||
import java.nio.file.Path; | ||
|
||
public class ExampleExpectPlatformImpl { | ||
/** | ||
* This is our actual method to {@link ExampleExpectPlatform#getConfigDirectory()}. | ||
*/ | ||
public static Path getConfigDirectory() { | ||
return QuiltLoader.getConfigDir(); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
quilt/src/main/java/io/github/imurx/screenshotcopy/quilt/ExampleModQuilt.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package io.github.imurx.screenshotcopy.quilt; | ||
|
||
import org.quiltmc.loader.api.ModContainer; | ||
import org.quiltmc.qsl.base.api.entrypoint.ModInitializer; | ||
|
||
public class ExampleModQuilt implements ModInitializer { | ||
@Override | ||
public void onInitialize(ModContainer mod) { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"schema_version": 1, | ||
"quilt_loader": { | ||
"group": "${group}", | ||
"id": "examplemod", | ||
"version": "${version}", | ||
"name": "Example Mod", | ||
"description": "This is an example description! Tell everyone what your mod is about!", | ||
"authors": ["Me!"], | ||
"contact": { | ||
"sources": "https://github.com/architectury/architectury-templates" | ||
}, | ||
"license": "Insert License Here", | ||
"icon": "assets/examplemod/icon.png", | ||
"intermediate_mappings": "net.fabricmc:intermediary", | ||
"environment": "*", | ||
"entrypoints": { | ||
"init": [ | ||
"net.examplemod.quilt.ExampleModQuilt" | ||
] | ||
}, | ||
"depends": [ | ||
{ | ||
"id": "quilt_loader", | ||
"version": "*" | ||
}, | ||
{ | ||
"id": "quilt_base", | ||
"version": "*" | ||
}, | ||
{ | ||
"id": "minecraft", | ||
"version": ">=1.18.2" | ||
}, | ||
{ | ||
"id": "architectury", | ||
"version": ">=4.4.59" | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.