Skip to content

Commit

Permalink
1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnupbups committed May 29, 2022
1 parent c3dff92 commit 9af492a
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 18 deletions.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.11-SNAPSHOT'
id 'fabric-loom' version '0.12-SNAPSHOT'
id 'maven-publish'
}

Expand Down Expand Up @@ -33,6 +33,9 @@ dependencies {

// RoughlyEnoughItems
modApi "me.shedaniel:RoughlyEnoughItems-fabric:${project.rei_version}"

// Architectury Fabric
modRuntimeOnly "dev.architectury:architectury-fabric:${project.arch_version}"
}

java {
Expand Down
17 changes: 10 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,27 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/develop/
minecraft_version=1.18.2
yarn_mappings=2
minecraft_version=1.19-pre3
yarn_mappings=4
tiny_version=2
loader_version=0.13.3

# Mod Properties
mod_version = 1.1.1
maven_group = com.shnupbups
mod_name = piglib
version_meta = fabric-mc1.18.2
version_meta = fabric-mc1.19

# Dependencies
# check on https://fabricmc.net/develop/
fapi_version=0.47.10+1.18.2
fapi_version=0.53.4+1.19

# Other Stuff
# check on maven at https://maven.shedaniel.me/me/shedaniel/RoughlyEnoughItems-fabric/
rei_version = 8.0.442

rei_version = 9.0.466

# check on maven at https://maven.shedaniel.me/dev/architectury/architectury-fabric/
arch_version = 5.4.14

# check on maven at https://maven.terraformersmc.com/releases/com/terraformersmc/modmenu/
modmenu_version = 3.1.0
modmenu_version = 4.0.0-beta.4
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

import net.minecraft.item.Items;
import net.minecraft.text.Text;
import net.minecraft.text.TranslatableText;

import me.shedaniel.rei.api.client.gui.Renderer;
import me.shedaniel.rei.api.common.category.CategoryIdentifier;
Expand All @@ -42,7 +41,7 @@ public CategoryIdentifier<? extends BarteringDisplay> getCategoryIdentifier() {

@Override
public Text getTitle() {
return new TranslatableText("category.piglib.bartering");
return Text.translatable("category.piglib.bartering");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

import net.minecraft.item.Items;
import net.minecraft.text.Text;
import net.minecraft.text.TranslatableText;

import me.shedaniel.rei.api.client.gui.Renderer;
import me.shedaniel.rei.api.common.category.CategoryIdentifier;
Expand All @@ -42,7 +41,7 @@ public CategoryIdentifier<? extends PiglinLovedDisplay> getCategoryIdentifier()

@Override
public Text getTitle() {
return new TranslatableText("category.piglib.piglin_loved");
return Text.translatable("category.piglib.piglin_loved");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

import net.minecraft.item.Items;
import net.minecraft.text.Text;
import net.minecraft.text.TranslatableText;

import me.shedaniel.rei.api.client.gui.Renderer;
import me.shedaniel.rei.api.common.category.CategoryIdentifier;
Expand All @@ -42,7 +41,7 @@ public CategoryIdentifier<? extends PiglinRepellentsDisplay> getCategoryIdentifi

@Override
public Text getTitle() {
return new TranslatableText("category.piglib.piglin_repellents");
return Text.translatable("category.piglib.piglin_repellents");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

import net.minecraft.item.Items;
import net.minecraft.text.Text;
import net.minecraft.text.TranslatableText;

import me.shedaniel.rei.api.client.gui.Renderer;
import me.shedaniel.rei.api.common.category.CategoryIdentifier;
Expand All @@ -42,7 +41,7 @@ public CategoryIdentifier<? extends PiglinSafeArmorDisplay> getCategoryIdentifie

@Override
public Text getTitle() {
return new TranslatableText("category.piglib.piglin_safe_armor");
return Text.translatable("category.piglib.piglin_safe_armor");
}

@Override
Expand Down
6 changes: 4 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
"main": [
"com.shnupbups.piglib.Piglib"
],
"rei": [
"com.shnupbups.piglib.rei.PiglibPlugin",
"rei_client": [
"com.shnupbups.piglib.rei.PiglibClientPlugin"
],
"rei_server": [
"com.shnupbups.piglib.rei.PiglibPlugin"
]
},
"mixins": ["piglib.mixins.json"],
Expand Down

0 comments on commit 9af492a

Please sign in to comment.