From 1d4c92111d9b2b4790db59c48c4734f0a431fa39 Mon Sep 17 00:00:00 2001 From: IceXaga Date: Thu, 3 Oct 2024 14:01:28 +0800 Subject: [PATCH 1/2] update --- ChineseFoods-Fork | 1 - .../cn/shidux/chinesefoods/ChineseFoods.java | 2 ++ .../item/JiangXi/NanChang/Items.java | 20 +++++++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) delete mode 160000 ChineseFoods-Fork create mode 100644 src/main/java/cn/shidux/chinesefoods/item/JiangXi/NanChang/Items.java diff --git a/ChineseFoods-Fork b/ChineseFoods-Fork deleted file mode 160000 index 5e18687..0000000 --- a/ChineseFoods-Fork +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5e186873aa1e524cfefaadc84a51c659ddeb2753 diff --git a/src/main/java/cn/shidux/chinesefoods/ChineseFoods.java b/src/main/java/cn/shidux/chinesefoods/ChineseFoods.java index ae056a6..6037787 100644 --- a/src/main/java/cn/shidux/chinesefoods/ChineseFoods.java +++ b/src/main/java/cn/shidux/chinesefoods/ChineseFoods.java @@ -17,5 +17,7 @@ public void onInitialize() { ModItems.registerModItems(); ModBlocks.registerModBlocks(); + + NanchangMixFlour.registerItem(); } } \ No newline at end of file diff --git a/src/main/java/cn/shidux/chinesefoods/item/JiangXi/NanChang/Items.java b/src/main/java/cn/shidux/chinesefoods/item/JiangXi/NanChang/Items.java new file mode 100644 index 0000000..e06a8ac --- /dev/null +++ b/src/main/java/cn/shidux/chinesefoods/item/JiangXi/NanChang/Items.java @@ -0,0 +1,20 @@ +package cn.shidux.chinesefoods.item.JiangXi.NanChang; + +import net.minecraft.item.Item; +import net.minecraft.item.ItemGroup; +import net.minecraft.util.Identifier; +import net.minecraft.util.registry.Registry; +import cn.shidux.chinesefoods.ChineseFoods; +import net.minecraft.item.FoodComponent; + +public class NanchangMixFlourItem extends Item { + public NanchangMixFlourItem() { + super(new Item.Settings().group(ChineseFoods.MOD_ITEM_GROUP).food(new FoodComponent.Builder().hunger(6).saturationModifier(0.6f).build())); + } + + // 注册物品 + public static final Item NANCHANG_CHAO_FEN = new NanchangChaoFenItem(); + public static void registerItem() { + Registry.register(Registry.ITEM, new Identifier(ChineseFoods.MOD_ID, "nanchang_chao_fen"), NANCHANG_CHAO_FEN); + } +} \ No newline at end of file From dfc7dcd5eba3b31f4b80371119e265f922327048 Mon Sep 17 00:00:00 2001 From: IceXaga Date: Thu, 3 Oct 2024 14:01:46 +0800 Subject: [PATCH 2/2] update --- .../java/cn/shidux/chinesefoods/item/JiangXi/NanChangFoods.java | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 src/main/java/cn/shidux/chinesefoods/item/JiangXi/NanChangFoods.java diff --git a/src/main/java/cn/shidux/chinesefoods/item/JiangXi/NanChangFoods.java b/src/main/java/cn/shidux/chinesefoods/item/JiangXi/NanChangFoods.java deleted file mode 100644 index e69de29..0000000