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

Delete Update #4

Merged
merged 2 commits into from
Oct 3, 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
1 change: 0 additions & 1 deletion ChineseFoods-Fork
Submodule ChineseFoods-Fork deleted from 5e1868
2 changes: 2 additions & 0 deletions src/main/java/cn/shidux/chinesefoods/ChineseFoods.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ public void onInitialize() {

ModItems.registerModItems();
ModBlocks.registerModBlocks();

NanchangMixFlour.registerItem();
}
}
Original file line number Diff line number Diff line change
@@ -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);
}
}
Empty file.
Loading