-
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.
Recipes were made. Going to add them now :D
- Loading branch information
1 parent
116d889
commit df3867e
Showing
3 changed files
with
38 additions
and
5 deletions.
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
29 changes: 29 additions & 0 deletions
29
src/main/java/com/darkwolfie/silentvalkyrie/item/ModCreativeTabs.java
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,29 @@ | ||
package com.darkwolfie.silentvalkyrie.item; | ||
|
||
import com.darkwolfie.silentvalkyrie.Main; | ||
import net.minecraft.core.registries.Registries; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.world.item.CreativeModeTab; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.item.Items; | ||
import net.minecraftforge.eventbus.api.IEventBus; | ||
import net.minecraftforge.registries.DeferredRegister; | ||
import net.minecraftforge.registries.RegistryObject; | ||
|
||
public class ModCreativeTabs { | ||
public static final DeferredRegister<CreativeModeTab> CREATIVE_MODE_TABS = | ||
DeferredRegister.create(Registries.CREATIVE_MODE_TAB, Main.MODID); | ||
|
||
public static final RegistryObject<CreativeModeTab> ORES_TAB = CREATIVE_MODE_TABS.register("ores_tab", | ||
() -> CreativeModeTab.builder().icon(() -> new ItemStack(ModItems.PlutoSteel.get())) | ||
.title(Component.translatable("creativetab.sv.ore_tab_thing_ig")) | ||
.displayItems((pParameters, pOutput) -> { | ||
pOutput.accept(ModItems.PlutoSteel.get()); | ||
}) | ||
.build()); | ||
|
||
|
||
public static void register(IEventBus eventBus) { | ||
CREATIVE_MODE_TABS.register(eventBus); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"item.silentvalkyrie.plutosteel": "PlutoSteel" | ||
"item.silentvalkyrie.plutosteel": "PlutoSteel", | ||
"creativetab.sv.ore_tab_thing_ig": "Ores IG" | ||
} |