-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added Base for items and an item group tab
- Loading branch information
MISTI-CAT
committed
Sep 7, 2024
1 parent
bd66b80
commit c8da60a
Showing
4 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package net.yanay.basemod.item; | ||
|
||
import net.fabricmc.fabric.api.itemgroup.v1.FabricItemGroup; | ||
import net.yanay.basemod.BaseMod; | ||
import net.minecraft.item.ItemGroup; | ||
import net.minecraft.registry.Registries; | ||
import net.minecraft.registry.Registry; | ||
import net.minecraft.text.Text; | ||
import net.minecraft.util.Identifier; | ||
|
||
public class ModItemGroups { | ||
public static final ItemGroup PINK_GARNET_ITEMS_GROUP = Registry.register(Registries.ITEM_GROUP, | ||
Identifier.of(BaseMod.MOD_ID, "pink_garnet_items"), | ||
FabricItemGroup.builder() | ||
.displayName(Text.translatable("itemgroup.tutorialmod.pink_garnet_items")) | ||
.entries((displayContext, entries) -> { | ||
|
||
}).build()); | ||
|
||
|
||
public static void registerItemGroups() { | ||
BaseMod.LOGGER.info("Registering Item Groups for " + BaseMod.MOD_ID); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package net.yanay.basemod.item; | ||
|
||
import net.minecraft.item.Item; | ||
import net.minecraft.registry.Registries; | ||
import net.minecraft.registry.Registry; | ||
import net.minecraft.util.Identifier; | ||
import net.yanay.basemod.BaseMod; | ||
|
||
public class ModItems { | ||
|
||
|
||
private static Item registerItem(String name, Item item) { | ||
return Registry.register(Registries.ITEM, Identifier.of(BaseMod.MOD_ID, name), item); | ||
} | ||
|
||
public static void registerModItems() { | ||
BaseMod.LOGGER.info("Registering Mod Items for " + BaseMod.MOD_ID); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
|
||
} |