Skip to content

Commit 775948b

Browse files
made some github action related changes in the build.gradle
1 parent 72f5f11 commit 775948b

File tree

3 files changed

+23
-21
lines changed

3 files changed

+23
-21
lines changed

build.gradle

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'fabric-loom' version '1.0-SNAPSHOT'
2+
id 'fabric-loom' version '1.4-SNAPSHOT'
33
id 'maven-publish'
44
id 'signing'
55
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0'
@@ -99,8 +99,8 @@ publishing {
9999
maven {
100100
name = "local"
101101
// change URLs to point to your repos, e.g. http://my.org/repo
102-
def releasesRepoUrl = "$buildDir/repos/releases"
103-
def snapshotsRepoUrl = "$buildDir/repos/snapshots"
102+
def releasesRepoUrl = "project.layout.buildDirectory.dir/repos/releases"
103+
def snapshotsRepoUrl = "project.layout.buildDirectory.dir/repos/snapshots"
104104
url = version.endsWith("SNAPSHOT") ? snapshotsRepoUrl : releasesRepoUrl
105105
}
106106
}
@@ -132,7 +132,8 @@ project.plugins.withType(MavenPublishPlugin).all {
132132
}
133133
}
134134
}
135-
136-
// exec {
137-
// commandLine "echo", "##[set-output name=version;]${project.version}";
138-
// }
135+
if (!System.properties['os.name'].toLowerCase().contains('windows')) {
136+
exec {
137+
commandLine "echo", "##[set-output name=version;]${project.version}"
138+
}
139+
}

gradle.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ org.gradle.daemon=false
44
# Fabric Properties
55
# check these on https://fabricmc.net/develop/
66
# Mod Properties
7-
mod_version=1.20.1-1.0.0
7+
mod_version=1.20.2-1.0.0
88
maven_group=io.github.codecraftplugin
99
archives_base_name=registry-lib
1010
#Minecraft
11-
minecraft_version=1.20.1
12-
yarn_mappings=1.20.1+build.2
13-
loader_version=0.14.21
11+
minecraft_version=1.20.2
12+
yarn_mappings=1.20.2+build.4
13+
loader_version=0.14.25
1414

1515
#Fabric api
16-
fabric_version=0.83.1+1.20.1
16+
fabric_version=0.91.1+1.20.2

src/main/java/io/github/codecraftplugin/registrylib/utils/RegistryRecipeProvider.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package io.github.codecraftplugin.registrylib.utils;
22

33
import net.fabricmc.fabric.api.datagen.v1.provider.FabricRecipeProvider;
4+
import net.minecraft.data.server.recipe.RecipeExporter;
45
import net.minecraft.data.server.recipe.RecipeJsonProvider;
56
import net.minecraft.data.server.recipe.ShapedRecipeJsonBuilder;
67
import net.minecraft.item.ItemConvertible;
@@ -18,7 +19,7 @@ public class RegistryRecipeProvider {
1819
* @param input the material the axe is made up of (wood, stone, iron, gold, diamond, any modded material)
1920
*/
2021

21-
public static void offerAxeRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible input) {
22+
public static void offerAxeRecipe(RecipeExporter exporter, ItemConvertible output, ItemConvertible input) {
2223
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, output).input(Character.valueOf('#'), input).input('S', Items.STICK)
2324
.pattern("## ")
2425
.pattern("#S ")
@@ -33,7 +34,7 @@ public static void offerAxeRecipe(Consumer<RecipeJsonProvider> exporter, ItemCon
3334
* @param output the output that is the pickaxe
3435
* @param input the material the pickaxe is made up of (wood, stone, iron, gold, diamond, any modded material)
3536
*/
36-
public static void offerPickaxeRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible input) {
37+
public static void offerPickaxeRecipe(RecipeExporter exporter, ItemConvertible output, ItemConvertible input) {
3738
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, output).input(Character.valueOf('#'), input).input('S', Items.STICK)
3839
.pattern("###")
3940
.pattern(" S ").pattern(" S ")
@@ -48,7 +49,7 @@ public static void offerPickaxeRecipe(Consumer<RecipeJsonProvider> exporter, Ite
4849
* @param input the material the Hoe is made up of (wood, stone, iron, gold, diamond, any modded material)
4950
*/
5051

51-
public static void offerHoeRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible input) {
52+
public static void offerHoeRecipe(RecipeExporter exporter, ItemConvertible output, ItemConvertible input) {
5253
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, output).input(Character.valueOf('#'), input).input('S', Items.STICK)
5354
.pattern("## ")
5455
.pattern(" S ")
@@ -63,7 +64,7 @@ public static void offerHoeRecipe(Consumer<RecipeJsonProvider> exporter, ItemCon
6364
* @param input the material the Shovel is made up of (wood, stone, iron, gold, diamond, any modded material)
6465
*/
6566

66-
public static void offerShovelRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible input) {
67+
public static void offerShovelRecipe(RecipeExporter exporter, ItemConvertible output, ItemConvertible input) {
6768
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, output).input(Character.valueOf('#'), input).input('S', Items.STICK)
6869
.pattern(" # ")
6970
.pattern(" S ")
@@ -79,7 +80,7 @@ public static void offerShovelRecipe(Consumer<RecipeJsonProvider> exporter, Item
7980
* @param output the output that is the Sword
8081
* @param input the material the Sword is made up of (wood, stone, iron, gold, diamond, any modded material)
8182
*/
82-
public static void offerSwordRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible input) {
83+
public static void offerSwordRecipe(RecipeExporter exporter, ItemConvertible output, ItemConvertible input) {
8384
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, output).input(Character.valueOf('#'), input).input('S', Items.STICK)
8485
.pattern(" # ")
8586
.pattern(" # ")
@@ -95,7 +96,7 @@ public static void offerSwordRecipe(Consumer<RecipeJsonProvider> exporter, ItemC
9596
* @param output the output that is the Chestplate
9697
* @param input the material the Chestplate is made up of (wood, stone, iron, gold, diamond, any modded material)
9798
*/
98-
public static void offerChestplateRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible input) {
99+
public static void offerChestplateRecipe(RecipeExporter exporter, ItemConvertible output, ItemConvertible input) {
99100
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, output).input(Character.valueOf('#'), input)
100101
.pattern("# #")
101102
.pattern("###")
@@ -110,7 +111,7 @@ public static void offerChestplateRecipe(Consumer<RecipeJsonProvider> exporter,
110111
* @param output the output that is the Boots
111112
* @param input the material the Boots is made up of (wood, stone, iron, gold, diamond, any modded material)
112113
*/
113-
public static void offerBootsRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible input) {
114+
public static void offerBootsRecipe(RecipeExporter exporter, ItemConvertible output, ItemConvertible input) {
114115
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, output).input(Character.valueOf('#'), input)
115116
.pattern(" ")
116117
.pattern("# #")
@@ -125,7 +126,7 @@ public static void offerBootsRecipe(Consumer<RecipeJsonProvider> exporter, ItemC
125126
* @param output the output that is the Leggings
126127
* @param input the material the Leggings is made up of (wood, stone, iron, gold, diamond, any modded material)
127128
*/
128-
public static void offerLeggingsRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible input) {
129+
public static void offerLeggingsRecipe(RecipeExporter exporter, ItemConvertible output, ItemConvertible input) {
129130
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, output).input(Character.valueOf('#'), input)
130131
.pattern("###")
131132
.pattern("# #")
@@ -140,7 +141,7 @@ public static void offerLeggingsRecipe(Consumer<RecipeJsonProvider> exporter, It
140141
* @param output the output that is the Helmet
141142
* @param input the material the Helmet is made up of (wood, stone, iron, gold, diamond, any modded material)
142143
*/
143-
public static void offerHelmetRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible input) {
144+
public static void offerHelmetRecipe(RecipeExporter exporter, ItemConvertible output, ItemConvertible input) {
144145
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, output).input(Character.valueOf('#'), input)
145146
.pattern("###")
146147
.pattern("# #")

0 commit comments

Comments
 (0)