package net.secknv.nkmod;

import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

@Mod(Naschkatze.MODID)
public class Naschkatze {


    public static final String MODID = "nkmod";
	private static final Logger LOGGER = LogManager.getLogger();

	public static final ItemGroup TAB = new ItemGroup("tabNk") {
		@Override
		public ItemStack createIcon() {
			return new ItemStack(RegistryHandler.URANIUM_INGOT.get());
		}
	};

	public Naschkatze() {
		// Register the setup method for modloading
		FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup);
		// Register the doClientStuff method for modloading
		FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff);

		// Register ourselves for server and other game events we are interested in
		MinecraftForge.EVENT_BUS.register(this);

		RegistryHandler.init();
	}

	private void setup(final FMLCommonSetupEvent event) {
		// pre init code
		LOGGER.info("nkmod pre init");
	}

	private void doClientStuff(final FMLClientSetupEvent event) {
		// do something that can only be done on the client
		LOGGER.info("Got game settings {}", event.getMinecraftSupplier().get().gameSettings);
	}
}

@@ -570,17 +570,20 @@
 nkmod%22;%0A
-%09
+    
 private 
@@ -636,17 +636,20 @@
 ger();%0A%0A
-%09
+    
 public s
@@ -701,18 +701,24 @@
 bNk%22) %7B%0A
-%09%09
+        
 @Overrid
@@ -719,18 +719,24 @@
 verride%0A
-%09%09
+        
 public I
@@ -763,11 +763,20 @@
 ) %7B%0A
-%09%09%09
+            
 retu
@@ -834,18 +834,30 @@
 ));%0A
-%09%09%7D%0A%09%7D;%0A%0A%09
+        %7D%0A    %7D;%0A%0A    
 publ
@@ -874,18 +874,24 @@
 tze() %7B%0A
-%09%09
+        
 // Regis
@@ -918,34 +918,40 @@
  for modloading%0A
-%09%09
+        
 FMLJavaModLoadin
@@ -1008,18 +1008,24 @@
 setup);%0A
-%09%09
+        
 // Regis
@@ -1068,18 +1068,24 @@
 loading%0A
-%09%09
+        
 FMLJavaM
@@ -1159,18 +1159,24 @@
 tuff);%0A%0A
-%09%09
+        
 // Regis
@@ -1243,18 +1243,24 @@
 sted in%0A
-%09%09
+        
 Minecraf
@@ -1293,18 +1293,24 @@
 this);%0A%0A
-%09%09
+        
 Registry
@@ -1325,21 +1325,27 @@
 init();%0A
-%09%7D%0A%0A%09
+    %7D%0A%0A    
 private 
@@ -1390,18 +1390,24 @@
 vent) %7B%0A
-%09%09
+        
 // pre i
@@ -1415,18 +1415,24 @@
 it code%0A
-%09%09
+        
 LOGGER.i
@@ -1458,13 +1458,19 @@
 %22);%0A
-%09%7D%0A%0A%09
+    %7D%0A%0A    
 priv
@@ -1527,18 +1527,24 @@
 vent) %7B%0A
-%09%09
+        
 // do so
@@ -1591,10 +1591,16 @@
 ent%0A
-%09%09
+        
 LOGG
@@ -1685,9 +1685,12 @@
 s);%0A
-%09
+    
 %7D%0A%7D%0A

fix indent to 4 spaces