package com.themastergeneral.moglowstone;

import com.themastergeneral.moglowstone.blocks.GSBlock;
import com.themastergeneral.moglowstone.items.BasicItem;
import com.themastergeneral.moglowstone.items.ModItemBlocks;

import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class MoGlowstoneRegistry {

	public static final DeferredRegister<Item> ITEMS = new DeferredRegister<>(ForgeRegistries.ITEMS, MoGlowstone.MODID);
	public static final DeferredRegister<Block> BLOCKS = new DeferredRegister<>(ForgeRegistries.BLOCKS, MoGlowstone.MODID);
	
	//Blocks
	public static final RegistryObject<Block> black_gsblock = BLOCKS.register("black_gsblock", () -> new GSBlock("black_gsblock"));
	public static final RegistryObject<Block> blue_gsblock = BLOCKS.register("blue_gsblock", () -> new GSBlock("blue_gsblock"));
	public static final RegistryObject<Block> brick_gsblock = BLOCKS.register("brick_gsblock", () -> new GSBlock("brick_gsblock"));
	public static final RegistryObject<Block> brown_gsblock = BLOCKS.register("brown_gsblock", () -> new GSBlock("brown_gsblock"));
	public static final RegistryObject<Block> cyan_gsblock = BLOCKS.register("cyan_gsblock", () -> new GSBlock("cyan_gsblock"));
	public static final RegistryObject<Block> green_gsblock = BLOCKS.register("green_gsblock", () -> new GSBlock("green_gsblock"));
	public static final RegistryObject<Block> gray_gsblock = BLOCKS.register("gray_gsblock", () -> new GSBlock("gray_gsblock"));
	public static final RegistryObject<Block> lamp_gsblock = BLOCKS.register("lamp_gsblock", () -> new GSBlock("lamp_gsblock"));
	public static final RegistryObject<Block> lgray_gsblock = BLOCKS.register("lgray_gsblock", () -> new GSBlock("lgray_gsblock"));
	public static final RegistryObject<Block> lime_gsblock = BLOCKS.register("lime_gsblock", () -> new GSBlock("lime_gsblock"));
	public static final RegistryObject<Block> magenta_gsblock = BLOCKS.register("magenta_gsblock", () -> new GSBlock("magenta_gsblock"));
	public static final RegistryObject<Block> pink_gsblock = BLOCKS.register("pink_gsblock", () -> new GSBlock("pink_gsblock"));
	public static final RegistryObject<Block> purple_gsblock = BLOCKS.register("purple_gsblock", () -> new GSBlock("purple_gsblock"));
	public static final RegistryObject<Block> red_gsblock = BLOCKS.register("red_gsblock", () -> new GSBlock("red_gsblock"));
	public static final RegistryObject<Block> white_gsblock = BLOCKS.register("white_gsblock", () -> new GSBlock("white_gsblock"));
	
	//Block Items
	public static final RegistryObject<Item> black_gsblock_item = ITEMS.register("black_gsblock_item", () -> new ModItemBlocks(black_gsblock.get()));
	public static final RegistryObject<Item> blue_gsblock_item = ITEMS.register("blue_gsblock_item", () -> new ModItemBlocks(blue_gsblock.get()));
	public static final RegistryObject<Item> brick_gsblock_item = ITEMS.register("brick_gsblock_item", () -> new ModItemBlocks(brick_gsblock.get()));
	public static final RegistryObject<Item> brown_gsblock_item = ITEMS.register("brown_gsblock_item", () -> new ModItemBlocks(brown_gsblock.get()));
	public static final RegistryObject<Item> cyan_gsblock_item = ITEMS.register("cyan_gsblock_item", () -> new ModItemBlocks(cyan_gsblock.get()));
	public static final RegistryObject<Item> green_gsblock_item = ITEMS.register("green_gsblock_item", () -> new ModItemBlocks(green_gsblock.get()));
	public static final RegistryObject<Item> gray_gsblock_item = ITEMS.register("gray_gsblock_item", () -> new ModItemBlocks(gray_gsblock.get()));
	public static final RegistryObject<Item> lamp_gsblock_item = ITEMS.register("lamp_gsblock_item", () -> new ModItemBlocks(lamp_gsblock.get()));
	public static final RegistryObject<Item> lgray_gsblock_item = ITEMS.register("lgray_gsblock_item", () -> new ModItemBlocks(lgray_gsblock.get()));
	public static final RegistryObject<Item> lime_gsblock_item = ITEMS.register("lime_gsblock_item", () -> new ModItemBlocks(lime_gsblock.get()));
	public static final RegistryObject<Item> magenta_gsblock_item = ITEMS.register("magenta_gsblock_item", () -> new ModItemBlocks(magenta_gsblock.get()));
	public static final RegistryObject<Item> pink_gsblock_item = ITEMS.register("pink_gsblock_item", () -> new ModItemBlocks(pink_gsblock.get()));
	public static final RegistryObject<Item> purple_gsblock_item = ITEMS.register("purple_gsblock_item", () -> new ModItemBlocks(purple_gsblock.get()));
	public static final RegistryObject<Item> white_gsblock_item = ITEMS.register("white_gsblock_item", () -> new ModItemBlocks(white_gsblock.get()));
	public static final RegistryObject<Item> red_gsblock_item = ITEMS.register("red_gsblock_item", () -> new ModItemBlocks(red_gsblock.get()));
	
	//Items
	public static final RegistryObject<Item> fuelGlowstone = ITEMS.register("fuelGlowstone", () -> new BasicItem("fuelGlowstone"))));
	
	private static boolean isInitialised = false;
	public static void init(final IEventBus eventBus) 
	{
		if (isInitialised) 
		{
			throw new IllegalStateException("Registry is already initialised!");
		}
		BLOCKS.register(eventBus);
		ITEMS.register(eventBus);
	}
}

@@ -520,16 +520,18 @@
 try %7B%0A%0A%09
+/*
 public s
@@ -5037,18 +5037,16 @@
 stone%22))
-))
 ;%0A%09%0A%09pri
@@ -5304,11 +5304,13 @@
 Bus);%0A%09%7D
+*/
 %0A%7D%0A

Comment out new registry sys until fixed