Skip to content

Commit

Permalink
Merge pull request #4 from IceXaga/master
Browse files Browse the repository at this point in the history
Delete Update
  • Loading branch information
alumr authored Oct 3, 2024
2 parents 6055e86 + dfc7dcd commit 1ad246d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
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.

0 comments on commit 1ad246d

Please sign in to comment.