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 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