Disabled creative tab
This commit is contained in:
parent
4430431b84
commit
7a45a6f5bf
3 changed files with 18 additions and 26 deletions
|
@ -1,14 +1,6 @@
|
|||
package cc.toph.simplycompat;
|
||||
|
||||
import cc.toph.simplycompat.registry.ItemsRegistry;
|
||||
import dev.architectury.registry.CreativeTabRegistry;
|
||||
import dev.architectury.registry.registries.DeferredRegister;
|
||||
import dev.architectury.registry.registries.RegistrySupplier;
|
||||
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 org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
|
@ -16,23 +8,22 @@ public final class SimplyCompat {
|
|||
|
||||
public static final String MOD_ID = "simplycompat";
|
||||
|
||||
public static final DeferredRegister<CreativeModeTab> TABS = DeferredRegister.create(
|
||||
MOD_ID,
|
||||
Registries.CREATIVE_MODE_TAB
|
||||
);
|
||||
public static final RegistrySupplier<CreativeModeTab> SIMPLYCOMPAT = TABS.register(MOD_ID, () ->
|
||||
CreativeTabRegistry.create(
|
||||
Component.translatable("creativeTab.simplycompat.simplycompat"),
|
||||
() -> new ItemStack(Items.AMETHYST_SHARD)
|
||||
)
|
||||
);
|
||||
// Unused TAB, for now added so SS's Tab registry by SSSwordItem class
|
||||
// public static final DeferredRegister<CreativeModeTab> TABS = DeferredRegister.create(
|
||||
// MOD_ID,
|
||||
// Registries.CREATIVE_MODE_TAB
|
||||
// );
|
||||
// public static final RegistrySupplier<CreativeModeTab> SIMPLYCOMPAT = TABS.register(MOD_ID, () ->
|
||||
// CreativeTabRegistry.create(
|
||||
// Component.translatable("creativeTab.simplycompat.simplycompat"),
|
||||
// () -> new ItemStack(Items.AMETHYST_SHARD)
|
||||
// )
|
||||
// );
|
||||
|
||||
public static final Logger LOGGER = LogManager.getLogger(MOD_ID);
|
||||
|
||||
public static void init() {
|
||||
// Write common init code here.
|
||||
|
||||
TABS.register();
|
||||
// TABS.register();
|
||||
ItemsRegistry.ITEMS.register();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,10 +6,10 @@ import net.minecraftforge.fml.common.Mod;
|
|||
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
||||
|
||||
@Mod(SimplyCompat.MOD_ID)
|
||||
public final class ExampleModForge {
|
||||
public final class SimplyCompatForge {
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
public ExampleModForge() {
|
||||
public SimplyCompatForge() {
|
||||
// Submit our event bus to let Architectury API register our content on the right time.
|
||||
EventBuses.registerModEventBus(
|
||||
SimplyCompat.MOD_ID,
|
|
@ -1,15 +1,16 @@
|
|||
modLoader = "javafml"
|
||||
loaderVersion = "[47,)"
|
||||
#issueTrackerURL = ""
|
||||
license = "Insert License Here"
|
||||
# TODO: Pick a license
|
||||
license = "MIT"
|
||||
|
||||
[[mods]]
|
||||
modId = "simplycompat"
|
||||
version = "${version}"
|
||||
displayName = "Simply Compat"
|
||||
authors = "Me!"
|
||||
authors = "TophC7"
|
||||
description = '''
|
||||
This is an example description! Tell everyone what your mod is about!
|
||||
A Simple mod for extended compat in Simply Swords!
|
||||
'''
|
||||
#logoFile = ""
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue