Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

升级 AnvilLib 版本,添加内置资源包 #1097

Merged
merged 1 commit into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,5 @@ run/

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar
/forge/src/main/resources/resoucepacks/
/fabric/src/main/resources/resoucepacks/
2 changes: 2 additions & 0 deletions common/src/main/java/dev/dubhe/anvilcraft/AnvilCraft.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import dev.dubhe.anvilcraft.init.ModItems;
import dev.dubhe.anvilcraft.init.ModMenuTypes;
import dev.dubhe.anvilcraft.init.ModNetworks;
import dev.dubhe.anvilcraft.init.ModResourcePacks;
import dev.dubhe.anvilcraft.util.EnchantmentDisableUtil;
import dev.dubhe.anvilcraft.util.Lazy;
import me.shedaniel.autoconfig.AutoConfig;
Expand Down Expand Up @@ -55,6 +56,7 @@ public static void init() {
ModNetworks.register();
ModDispenserBehavior.register();
ModEnchantments.register();
ModResourcePacks.register();

AnvilRecipe.init();
// datagen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,10 @@ public static void init(@NotNull RegistrateLangProvider provider) {
"We have detected that you have only installed JEI and will not be able to obtain a complete recipe query. "
+ "We recommend installing %s for a complete gaming experience!"
);

provider.add(
"pack.anvilcraft.transparent_cauldron.description",
"Transparent Cauldron"
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package dev.dubhe.anvilcraft.init;

import dev.anvilcraft.lib.registrar.ResourcePacksHelper;
import dev.dubhe.anvilcraft.AnvilCraft;

public class ModResourcePacks {
public static void register() {

Check warning on line 7 in common/src/main/java/dev/dubhe/anvilcraft/init/ModResourcePacks.java

View workflow job for this annotation

GitHub Actions / checkstyle

[Checkstyle] reported by reviewdog 🐶 Missing a Javadoc comment. Raw Output: /home/runner/work/AnvilCraft/AnvilCraft/common/src/main/java/dev/dubhe/anvilcraft/init/ModResourcePacks.java:7:5: warning: Missing a Javadoc comment. (com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck)
ResourcePacksHelper.registerBuiltinResourcePack(
AnvilCraft.of("transparent_cauldron"),
ResourcePacksHelper.PackType.CLIENT
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"pack": {
"description": {
"translate": "pack.anvilcraft.transparent_cauldron.description"
},
"pack_format": 15
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@
"itemGroup.anvilcraft.tools": "sǝıʇıןıʇ∩ :ʇɟɐɹƆןıʌuⱯ",
"message.anvilcraft.need_patchouli_installed": "pǝןןɐʇsuı ǝq oʇ spǝǝu ıןnoɥɔʇɐԀ",
"modmenu.nameTranslation.anvilcraft": "ʇɟɐɹƆןıʌuⱯ",
"pack.anvilcraft.transparent_cauldron.description": "uoɹpןnɐƆ ʇuǝɹɐdsuɐɹ⟘",
"patchouli.anvilcraft.landing_text": "ʇɟɐɹƆןıʌuⱯ oʇ ǝɯoɔןǝM",
"screen.anvilcraft.active_silencer.title": "ɹǝɔuǝןıS ǝʌıʇɔⱯ",
"screen.anvilcraft.button.direction": "%s :uoıʇɔǝɹıᗡ ʇndʇnO",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@
"itemGroup.anvilcraft.tools": "AnvilCraft: Utilities",
"message.anvilcraft.need_patchouli_installed": "Patchouli needs to be installed",
"modmenu.nameTranslation.anvilcraft": "AnvilCraft",
"pack.anvilcraft.transparent_cauldron.description": "Transparent Cauldron",
"patchouli.anvilcraft.landing_text": "Welcome to AnvilCraft",
"screen.anvilcraft.active_silencer.title": "Active Silencer",
"screen.anvilcraft.button.direction": "Output Direction: %s",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@
"itemGroup.anvilcraft.tools": "sǝıʇıןıʇ∩ :ʇɟɐɹƆןıʌuⱯ",
"message.anvilcraft.need_patchouli_installed": "pǝןןɐʇsuı ǝq oʇ spǝǝu ıןnoɥɔʇɐԀ",
"modmenu.nameTranslation.anvilcraft": "ʇɟɐɹƆןıʌuⱯ",
"pack.anvilcraft.transparent_cauldron.description": "uoɹpןnɐƆ ʇuǝɹɐdsuɐɹ⟘",
"patchouli.anvilcraft.landing_text": "ʇɟɐɹƆןıʌuⱯ oʇ ǝɯoɔןǝM",
"screen.anvilcraft.active_silencer.title": "ɹǝɔuǝןıS ǝʌıʇɔⱯ",
"screen.anvilcraft.button.direction": "%s :uoıʇɔǝɹıᗡ ʇndʇnO",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@
"itemGroup.anvilcraft.tools": "AnvilCraft: Utilities",
"message.anvilcraft.need_patchouli_installed": "Patchouli needs to be installed",
"modmenu.nameTranslation.anvilcraft": "AnvilCraft",
"pack.anvilcraft.transparent_cauldron.description": "Transparent Cauldron",
"patchouli.anvilcraft.landing_text": "Welcome to AnvilCraft",
"screen.anvilcraft.active_silencer.title": "Active Silencer",
"screen.anvilcraft.button.direction": "Output Direction: %s",
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jei_version=15.3.0.4
rei_version=12.0.648
emi_version=1.1.10+1.20.1
kjs_version=2001.6.3-build.37
anvil_lib_version=1.0.0+build.7
anvil_lib_version=1.0.0+build.29
## Fabric
fabric_loader_version=0.15.7
fabric_api_version=0.92.0
Expand Down
Loading