package net.darkmorford.jas.proxy;

import net.darkmorford.jas.JustAnotherSnad;
import net.darkmorford.jas.init.ModBlocks;
import net.darkmorford.jas.item.ItemBlockSoulSnadMeta;
import net.minecraft.block.Block;
import net.minecraft.block.BlockSand;
import net.minecraft.item.Item;
import net.minecraft.item.ItemMultiTexture;
import net.minecraft.item.ItemStack;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.registries.IForgeRegistry;
import org.apache.logging.log4j.Level;

@Mod.EventBusSubscriber
public class CommonProxy {

	public void preInit(FMLPreInitializationEvent event) {
	}

	public void init(FMLInitializationEvent event) {
	}

	public void postInit(FMLPostInitializationEvent event) {
	}

	@SubscribeEvent
	public static void registerBlocks(RegistryEvent.Register<Block> event) {
		JustAnotherSnad.logger.log(Level.INFO, "Registering blocks");
		event.getRegistry().registerAll(ModBlocks.snad, ModBlocks.soulSnad);
	}

	@SubscribeEvent
	public static void registerItems(RegistryEvent.Register<Item> event) {
		JustAnotherSnad.logger.log(Level.INFO, "Registering items");
		IForgeRegistry<Item> registry = event.getRegistry();

		// Special Items
		Item snadBlock = new ItemMultiTexture(ModBlocks.snad, ModBlocks.snad, new ItemMultiTexture.Mapper() {
			@Override
			public String apply(ItemStack stack) {
				return BlockSand.EnumType.byMetadata(stack.getMetadata()).getUnlocalizedName();
			}
		}).setRegistryName(ModBlocks.snad.getRegistryName());

		Item soulSnadBlock = new ItemBlockSoulSnadMeta(ModBlocks.soulSnad)
				.setRegistryName(ModBlocks.soulSnad.getRegistryName());

		// ItemBlocks
		registry.registerAll(snadBlock, soulSnadBlock);
	}
}

@@ -120,63 +120,8 @@
 ks;%0A
-import net.darkmorford.jas.item.ItemBlockSoulSnadMeta;%0A
 impo
@@ -220,16 +220,53 @@
 m.Item;%0A
+import net.minecraft.item.ItemBlock;%0A
 import n
@@ -1555,105 +1555,16 @@
 ad, 
-new ItemMultiTexture.Mapper() %7B%0A%09%09%09@Override%0A%09%09%09public String apply(ItemStack stack) %7B%0A%09%09%09%09return
+stack -%3E
  Blo
@@ -1635,18 +1635,8 @@
 me()
-;%0A%09%09%09%7D%0A%09%09%7D
 ).se
@@ -1725,20 +1725,8 @@
 lock
-SoulSnadMeta
 (Mod

Use Lamba for anonymous inner class