-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
275 changed files
with
1,295 additions
and
614 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,9 +41,27 @@ jobs: | |
MAVEN_UPLOAD_USERNAME: ${{ secrets.MAVEN_UPLOAD_USERNAME }} | ||
MAVEN_UPLOAD_PASSWORD: ${{ secrets.MAVEN_UPLOAD_PASSWORD }} | ||
run: ./gradlew publish | ||
- name: Publish | ||
- name: Publish (GitHub Releases) | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
github-token: ${{ github.token }} | ||
files: | | ||
**/build/libs/!(*-@(dev|sources|javadoc)).jar | ||
**/build/libs/*-@(sources|javadoc).jar | ||
- name: Publish (NeoForge) | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | ||
github-token: ${{ github.token }} | ||
version: ${{ github.ref_name }}+NeoForge | ||
files: | | ||
NeoForge/build/libs/!(*-@(dev|sources|javadoc)).jar | ||
NeoForge/build/libs/*-@(sources|javadoc).jar | ||
- name: Publish (Quilt) | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | ||
files: | | ||
Quilt/build/libs/!(*-@(dev|sources|javadoc)).jar | ||
Quilt/build/libs/*-@(sources|javadoc).jar |
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,17 @@ | ||
plugins { | ||
alias libs.plugins.vanilla.gradle | ||
} | ||
|
||
minecraft { | ||
version(libs.versions.minecraft.get()) | ||
if (file("src/main/resources/${mod_id}.accesswidener").exists()) { | ||
accessWideners(file("src/main/resources/${mod_id}.accesswidener")) | ||
} | ||
} | ||
|
||
dependencies { | ||
compileOnly libs.bundles.mixin | ||
compileOnly libs.jetbrains.annotations | ||
|
||
implementation libs.resourcefulconfig | ||
} |
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,35 @@ | ||
[versions] | ||
minecraft = "1.20.1" | ||
|
||
# The latest versions are available at https://parchmentmc.org/docs/getting-started | ||
parchment = "2023.09.03" | ||
|
||
mixin = "0.8.5" | ||
mixin_extras = "0.3.2" | ||
asm = "9.6" | ||
jetbrains_annotations = "24.1.0" | ||
vanilla_gradle = "0.2.1-SNAPSHOT" | ||
|
||
resourcefulconfig = "2.1.1" | ||
|
||
[libraries] | ||
minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" } | ||
parchment_mappings = { module = "org.parchmentmc.data:parchment-1.20.1", version.ref = "parchment" } | ||
mixin = { module = "org.spongepowered:mixin", version.ref = "mixin" } | ||
mixin_extras = { module = "io.github.llamalad7:mixinextras-common", version.ref = "mixin_extras" } | ||
asm = { module = "org.ow2.asm:asm", version.ref = "asm" } | ||
asm_analysis = { module = "org.ow2.asm:asm-analysis", version.ref = "asm" } | ||
asm_commons = { module = "org.ow2.asm:asm-commons", version.ref = "asm" } | ||
asm_tree = { module = "org.ow2.asm:asm-tree", version.ref = "asm" } | ||
asm_util = { module = "org.ow2.asm:asm-util", version.ref = "asm" } | ||
jetbrains_annotations = { module = "org.jetbrains:annotations", version.ref = "jetbrains_annotations" } | ||
|
||
resourcefulconfig = { module = "com.teamresourceful.resourcefulconfig:resourcefulconfig-common-1.20.1", version.ref = "resourcefulconfig" } | ||
resourcefulconfig_fabric = { module = "com.teamresourceful.resourcefulconfig:resourcefulconfig-fabric-1.20.1", version.ref = "resourcefulconfig" } | ||
resourcefulconfig_forge = { module = "com.teamresourceful.resourcefulconfig:resourcefulconfig-forge-1.20.1", version.ref = "resourcefulconfig" } | ||
|
||
[bundles] | ||
mixin = ["mixin", "mixin_extras", "asm", "asm_analysis", "asm_commons", "asm_tree", "asm_util"] | ||
|
||
[plugins] | ||
vanilla_gradle = { id = "org.spongepowered.gradle.vanilla", version.ref = "vanilla_gradle" } |
31 changes: 31 additions & 0 deletions
31
Common/src/main/java/dev/cammiescorner/camsbackpacks/CamsBackpacks.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,31 @@ | ||
package dev.cammiescorner.camsbackpacks; | ||
|
||
import com.teamresourceful.resourcefulconfig.common.config.Configurator; | ||
import dev.cammiescorner.camsbackpacks.config.BackpacksConfig; | ||
import dev.cammiescorner.camsbackpacks.init.ModBlockEntities; | ||
import dev.cammiescorner.camsbackpacks.init.ModBlocks; | ||
import dev.cammiescorner.camsbackpacks.init.ModScreenHandlers; | ||
import dev.cammiescorner.camsbackpacks.util.platform.Services; | ||
import net.minecraft.resources.ResourceLocation; | ||
|
||
public class CamsBackpacks { | ||
|
||
public static final String MOD_ID = "camsbackpacks"; | ||
public static final Configurator CONFIGURATOR = new Configurator(); | ||
|
||
public static void init() { | ||
CONFIGURATOR.registerConfig(BackpacksConfig.class); | ||
|
||
ModBlocks.register(); | ||
ModBlockEntities.register(); | ||
ModScreenHandlers.register(); | ||
} | ||
|
||
public static ResourceLocation id(String path) { | ||
return new ResourceLocation(MOD_ID, path); | ||
} | ||
|
||
public static String getIssuesURL() { | ||
return Services.PLATFORM.getIssuesUrl(); | ||
} | ||
} |
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
17 changes: 17 additions & 0 deletions
17
Common/src/main/java/dev/cammiescorner/camsbackpacks/client/CamsBackpacksClient.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,17 @@ | ||
package dev.cammiescorner.camsbackpacks.client; | ||
|
||
import dev.cammiescorner.camsbackpacks.CamsBackpacks; | ||
import dev.cammiescorner.camsbackpacks.client.screen.BackpackScreen; | ||
import dev.cammiescorner.camsbackpacks.init.ModScreenHandlers; | ||
import net.minecraft.client.gui.screens.MenuScreens; | ||
import net.minecraft.client.model.geom.ModelLayerLocation; | ||
|
||
public class CamsBackpacksClient { | ||
public static final ModelLayerLocation BACKPACK = new ModelLayerLocation(CamsBackpacks.id("backpack"), "main"); | ||
public static boolean backpackScreenIsOpen = true; | ||
public static boolean chestSlotUiEnabled = true; | ||
|
||
public static void init() { | ||
MenuScreens.register(ModScreenHandlers.BACKPACK_SCREEN_HANDLER.get(), BackpackScreen::new); | ||
} | ||
} |
File renamed without changes.
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
8 changes: 8 additions & 0 deletions
8
Common/src/main/java/dev/cammiescorner/camsbackpacks/compat/ModCompat.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,8 @@ | ||
package dev.cammiescorner.camsbackpacks.compat; | ||
|
||
import dev.cammiescorner.camsbackpacks.util.platform.Services; | ||
|
||
public class ModCompat { | ||
|
||
public static final boolean UNIVERSAL_GRAVES = Services.PLATFORM.isModLoaded("universal-graves"); | ||
} |
Oops, something went wrong.