
/*
 *    MCreator note: This file will be REGENERATED on each build.
 */
package net.mcreator.gts.init;

import net.neoforged.neoforge.registries.DeferredRegister;
import net.neoforged.neoforge.registries.DeferredItem;
import net.neoforged.neoforge.registries.DeferredHolder;
import net.neoforged.neoforge.common.DeferredSpawnEggItem;

import net.minecraft.world.level.block.Block;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.BlockItem;

import net.mcreator.gts.item.TokiDiskItem;
import net.mcreator.gts.item.TokiCrystalItem;
import net.mcreator.gts.GtsMod;

public class GtsModItems {
	public static final DeferredRegister.Items REGISTRY = DeferredRegister.createItems(GtsMod.MODID);
	public static final DeferredItem<Item> TOKI_SPAWN_EGG = REGISTRY.register("toki_spawn_egg", () -> new DeferredSpawnEggItem(GtsModEntities.TOKI, -16724737, -1, new Item.Properties()));
	public static final DeferredItem<Item> TOKI_DRONE_SPAWN_EGG = REGISTRY.register("toki_drone_spawn_egg", () -> new DeferredSpawnEggItem(GtsModEntities.TOKI_DRONE, -13382401, -6710887, new Item.Properties()));
	public static final DeferredItem<Item> MODIFIED_ANVIL = block(GtsModBlocks.MODIFIED_ANVIL);
	public static final DeferredItem<Item> TOKI_CRYSTAL = REGISTRY.register("toki_crystal", TokiCrystalItem::new);
	public static final DeferredItem<Item> TOKI_DISK = REGISTRY.register("toki_disk", TokiDiskItem::new);
	public static final DeferredItem<Item> CANDY_SPAWN_EGG = REGISTRY.register("candy_spawn_egg", () -> new DeferredSpawnEggItem(GtsModEntities.CANDY, -39271, -1, new Item.Properties()));
	public static final DeferredItem<Item> ARA_SPAWN_EGG = REGISTRY.register("ara_spawn_egg", () -> new DeferredSpawnEggItem(GtsModEntities.ARA, -10066177, -1, new Item.Properties()));

	// Start of user code block custom items
	// End of user code block custom items
	private static DeferredItem<Item> block(DeferredHolder<Block, Block> block) {
		return REGISTRY.register(block.getId().getPath(), () -> new BlockItem(block.get(), new Item.Properties()));
	}
}
