Skip to content

Commit

Permalink
feat: quilt
Browse files Browse the repository at this point in the history
  • Loading branch information
Slexom committed Jun 11, 2022
1 parent 65283b2 commit f77099c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies {
}

architectury {
common()
common(rootProject.enabled_platforms.split(","))
}

publishing {
Expand Down
3 changes: 3 additions & 0 deletions common/src/main/resources/architectury.common.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"accessWidener": "animal_feeding_trough.accesswidener"
}
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ archives_base_name=animal_feeding_trough

# Architectury
architectury_version=5.5.18
enabled_platforms=fabric,forge,quilt

# Fabric
fabric_loader_version=0.14.7
Expand All @@ -22,5 +23,5 @@ fabric_api_version=0.55.3+1.19
forge_version=41.0.5

# Quilt
quilt_fabric_api_version=1.0.0-beta.13+0.51.1-1.18.2
quilt_fabric_api_version=2.0.0-alpha.2+0.55.3-1.19
quilt_loader_version=0.17.0-beta.4
5 changes: 4 additions & 1 deletion quilt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ dependencies {
// shadowCommon(project(path: ":fabric-like", configuration: "transformProductionQuilt")) { transitive false }
}

version = "${rootProject.mod_version}+${rootProject.minecraft_version}-quilt"

processResources {
inputs.property "group", rootProject.maven_group
inputs.property "version", project.version
Expand Down Expand Up @@ -78,7 +80,7 @@ components.java {
skip()
}
}

/*
publishing {
publications {
mavenQuilt(MavenPublication) {
Expand All @@ -92,3 +94,4 @@ publishing {
// Add repositories to publish to here.
}
}
*/
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
package slexom.animal_feeding_trough.platform.quilt;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import org.quiltmc.loader.api.ModContainer;
import org.quiltmc.qsl.base.api.entrypoint.client.ClientModInitializer;
import slexom.animal_feeding_trough.platform.common.AnimalFeedingTroughMod;

public class AnimalFeedingTroughClientModQuilt implements ClientModInitializer {

@Override
@Environment(EnvType.CLIENT)
public void onInitializeClient(ModContainer mod) {
AnimalFeedingTroughMod.onInitializeClient();
}


}

11 changes: 6 additions & 5 deletions quilt/src/main/resources/quilt.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"schema_version": 1,
"mixin": [
"mixins.animal_feeding_trough.json"
],
"quilt_loader": {
"group": "${group}", "id": "animal_feeding_trough",
"group": "${group}",
"id": "animal_feeding_trough",
"version": "${version}",
"name": "Animal Feeding Trough",
"description": "-",
Expand All @@ -20,13 +24,10 @@
"init": [
"slexom.animal_feeding_trough.platform.quilt.AnimalFeedingTroughModQuilt"
],
"client": [
"client_init": [
"slexom.animal_feeding_trough.platform.quilt.AnimalFeedingTroughClientModQuilt"
]
},
"mixins": [
"mixins.animal_feeding_trough.json"
],
"depends": [
{
"id": "quilt_loader",
Expand Down

0 comments on commit f77099c

Please sign in to comment.