<commit_before>package hexaguin.advancedKinetics;

import net.minecraft.block.Block;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.entity.RenderSnowball;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.Configuration;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.Property;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;

@Mod(modid = AdvancedKinetics.modid, name = "Advanced Kinetics", version = "Beta 0.3")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)

public class AdvancedKinetics {
	public static final String modid = "Hexaguin_AdvancedKinetics";
	
	public static Block acceleratorBlock;
	public static Block launcherBlock;
	public static Block heartSandBlock;
	public static Block gravityInverterBlock;
	public static Block directionalLauncherBlock;
	public static Block gravityWellBlock;
	public static Block pearlActivatorBlock;
	
	public static Item itemRuggedPearl;
	
	public static int acceleratorID;
	public static int launcherID;
	public static int heartSandID;
	public static int gravityInverterID;
	public static int directionalLauncherID;
	public static int gravityWellID;
	public static int pearlActivatorID;
	public static int ruggedPearlID;
	
	public static Property gravityInverterRange;
	public static Property gravityWellRange;
	public static Property ruggedPearlLifespan;
	
	private static int modEntityID = 0;

	
	@EventHandler
	public void preInit(FMLPreInitializationEvent event) {
		Configuration config = new Configuration(event.getSuggestedConfigurationFile());
		
		config.load();
		
		acceleratorID = config.getBlock("acceleratorID", 530).getInt();
		launcherID = config.getBlock("launcherID", 531).getInt();
		heartSandID = config.getBlock("heartSandID", 532).getInt();
		gravityInverterID = config.getBlock("gravityInverterID", 533).getInt();
		directionalLauncherID = config.getBlock("directionalLauncherID", 534).getInt();
		gravityWellID = config.getBlock("gravityWellID", 535).getInt();
		pearlActivatorID = config.getBlock("pearlActivatorID", 536).getInt();
		ruggedPearlID = config.getItem("ruggedPearlUD", 537).getInt();
		
		gravityInverterRange = config.get("tweaks", "gravityInverterRange", 8);
		gravityWellRange = config.get("tweaks", "gravityWellRange", 16);
		ruggedPearlLifespan = config.get("tweaks", "ruggedPearlLifespan", 1600);
		
		config.save();
	}
	
	
	@EventHandler
	public void load(FMLInitializationEvent event)
	{
		//tileentity registration
		GameRegistry.registerTileEntity(hexaguin.advancedKinetics.TileEntityGravityInverter.class, "TileEntityGravityInverter");
			
        //adding blocks
		acceleratorBlock = new BlockAcceleratorBlock(acceleratorID,Material.iron)
		.setUnlocalizedName("acceleratorBlock")
		.setHardness(1.5F)
		.setTextureName("hexaguin_advancedkinetics:acceleratorBlock");
        GameRegistry.registerBlock(acceleratorBlock, modid + acceleratorBlock.getUnlocalizedName().substring(5));
        LanguageRegistry.addName(acceleratorBlock, "Kinetic Accelerator");
        MinecraftForge.setBlockHarvestLevel(acceleratorBlock, "pickaxe", 1);
        
        launcherBlock = new BlockLauncherBlock(launcherID,Material.glass)
        .setUnlocalizedName("launcherBlock")
        .setHardness(3F)
        .setTextureName("hexaguin_advancedkinetics:launcherBlock");
        GameRegistry.registerBlock(launcherBlock, modid + launcherBlock.getUnlocalizedName().substring(5));
        LanguageRegistry.addName(launcherBlock, "Kinetic Vertical Velocity Enhancer");
        MinecraftForge.setBlockHarvestLevel(launcherBlock, "pickaxe", 1);
        
        heartSandBlock = new HeartSandBlock(heartSandID,Material.sand)
        .setUnlocalizedName("heartSandBlock");
        GameRegistry.registerBlock(heartSandBlock, modid + heartSandBlock.getUnlocalizedName().substring(5));
        LanguageRegistry.addName(heartSandBlock, "Heartsand [WIP]");
        
        gravityInverterBlock = new GravityInverterBlock(gravityInverterID,Material.iron)
        .setHardness(1.5F)
        .setTextureName("hexaguin_advancedkinetics:gravityInverterBlock")
        .setUnlocalizedName("gravityInverterBlock");
        GameRegistry.registerBlock(gravityInverterBlock, modid + gravityInverterBlock.getUnlocalizedName().substring(5));
        LanguageRegistry.addName(gravityInverterBlock, "Kinetic Gravity Inverter");
        MinecraftForge.setBlockHarvestLevel(gravityInverterBlock, "pickaxe", 1);
        
        gravityWellBlock = new GravityWellBlock(gravityWellID,Material.iron)
        .setHardness(1.5F)
        .setTextureName("hexaguin_advancedkinetics:gravityWellBlock")
        .setUnlocalizedName("gravityWellBlock");
        GameRegistry.registerBlock(gravityWellBlock, modid + gravityWellBlock.getUnlocalizedName().substring(5));
        LanguageRegistry.addName(gravityWellBlock, "Kinetic Gravity Well");
        MinecraftForge.setBlockHarvestLevel(gravityWellBlock, "pickaxe", 1);
        
        directionalLauncherBlock = new DirectionalLauncherBlock(directionalLauncherID,Material.glass)
        .setUnlocalizedName("directionalLauncherBlock")
        .setHardness(3F);
        GameRegistry.registerBlock(directionalLauncherBlock, ItemDirectionalLauncherBlock.class, modid + (directionalLauncherBlock.getUnlocalizedName().substring(5)));
        LanguageRegistry.addName(new ItemStack(directionalLauncherBlock,1, 0), "Kinetic Northbound Velocity Enhancer");
        LanguageRegistry.addName(new ItemStack(directionalLauncherBlock,1, 1), "Kinetic Eastbound Velocity Enhancer");
        LanguageRegistry.addName(new ItemStack(directionalLauncherBlock,1, 2), "Kinetic Southbound Velocity Enhancer");
        LanguageRegistry.addName(new ItemStack(directionalLauncherBlock,1, 3), "Kinetic Westbound Velocity Enhancer");
        MinecraftForge.setBlockHarvestLevel(directionalLauncherBlock, "pickaxe", 1);
        
        pearlActivatorBlock = new pearlActivatorBlock(pearlActivatorID,Material.iron)
        .setHardness(1.5F)
        .setTextureName("hexaguin_advancedkinetics:pearlActivatorBlock")
        .setUnlocalizedName("pearlActivatorBlock");
        GameRegistry.registerBlock(pearlActivatorBlock, modid + pearlActivatorBlock.getUnlocalizedName().substring(5));
        LanguageRegistry.addName(pearlActivatorBlock, "Rugged Pearl Activator");
        MinecraftForge.setBlockHarvestLevel(pearlActivatorBlock, "pickaxe", 1);
        
        //items
        itemRuggedPearl = new ItemRuggedPearl(ruggedPearlID)
        .setTextureName("hexaguin_advancedkinetics:ruggedPearl")
        .setUnlocalizedName("itemRuggedPearl");
        LanguageRegistry.addName(itemRuggedPearl, "Rugged Ender Pearl");
        
        //adding entities
        
        EntityRegistry.registerModEntity(EntityRuggedPearl.class, "Rugged Pearl", ++modEntityID, this, 64, 10, true);
        RenderingRegistry.registerEntityRenderingHandler(EntityRuggedPearl.class, new RenderSnowball(itemRuggedPearl));
       
        //adding Recipes
        ItemStack accelerator = new ItemStack(acceleratorBlock);
        ItemStack accelerator16 = new ItemStack(acceleratorBlock,16);
        ItemStack launcher = new ItemStack(launcherBlock);
        ItemStack northLauncher = new ItemStack(directionalLauncherBlock,1,0);
        ItemStack eastLauncher = new ItemStack(directionalLauncherBlock,1,1);
        ItemStack southLauncher = new ItemStack(directionalLauncherBlock,1,2);
        ItemStack westLauncher = new ItemStack(directionalLauncherBlock,1,3);
        ItemStack inverter = new ItemStack(gravityInverterBlock);
        ItemStack gravityWell = new ItemStack(gravityWellBlock);
        ItemStack quartz = new ItemStack(Item.netherQuartz);
        ItemStack redstone = new ItemStack(Item.redstone);<commit_msg>Typo fix<commit_after>package hexaguin.advancedKinetics;

import net.minecraft.block.Block;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.entity.RenderSnowball;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.Configuration;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.Property;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;

@Mod(modid = AdvancedKinetics.modid, name = "Advanced Kinetics", version = "Beta 0.3")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)

public class AdvancedKinetics {
	public static final String modid = "Hexaguin_AdvancedKinetics";
	
	public static Block acceleratorBlock;
	public static Block launcherBlock;
	public static Block heartSandBlock;
	public static Block gravityInverterBlock;
	public static Block directionalLauncherBlock;
	public static Block gravityWellBlock;
	public static Block pearlActivatorBlock;
	
	public static Item itemRuggedPearl;
	
	public static int acceleratorID;
	public static int launcherID;
	public static int heartSandID;
	public static int gravityInverterID;
	public static int directionalLauncherID;
	public static int gravityWellID;
	public static int pearlActivatorID;
	public static int ruggedPearlID;
	
	public static Property gravityInverterRange;
	public static Property gravityWellRange;
	public static Property ruggedPearlLifespan;
	
	private static int modEntityID = 0;

	
	@EventHandler
	public void preInit(FMLPreInitializationEvent event) {
		Configuration config = new Configuration(event.getSuggestedConfigurationFile());
		
		config.load();
		
		acceleratorID = config.getBlock("acceleratorID", 530).getInt();
		launcherID = config.getBlock("launcherID", 531).getInt();
		heartSandID = config.getBlock("heartSandID", 532).getInt();
		gravityInverterID = config.getBlock("gravityInverterID", 533).getInt();
		directionalLauncherID = config.getBlock("directionalLauncherID", 534).getInt();
		gravityWellID = config.getBlock("gravityWellID", 535).getInt();
		pearlActivatorID = config.getBlock("pearlActivatorID", 536).getInt();
		ruggedPearlID = config.getItem("ruggedPearlID", 537).getInt();
		
		gravityInverterRange = config.get("tweaks", "gravityInverterRange", 8);
		gravityWellRange = config.get("tweaks", "gravityWellRange", 16);
		ruggedPearlLifespan = config.get("tweaks", "ruggedPearlLifespan", 1600);
		
		config.save();
	}
	
	
	@EventHandler
	public void load(FMLInitializationEvent event)
	{
		//tileentity registration
		GameRegistry.registerTileEntity(hexaguin.advancedKinetics.TileEntityGravityInverter.class, "TileEntityGravityInverter");
			
        //adding blocks
		acceleratorBlock = new BlockAcceleratorBlock(acceleratorID,Material.iron)
		.setUnlocalizedName("acceleratorBlock")
		.setHardness(1.5F)
		.setTextureName("hexaguin_advancedkinetics:acceleratorBlock");
        GameRegistry.registerBlock(acceleratorBlock, modid + acceleratorBlock.getUnlocalizedName().substring(5));
        LanguageRegistry.addName(acceleratorBlock, "Kinetic Accelerator");
        MinecraftForge.setBlockHarvestLevel(acceleratorBlock, "pickaxe", 1);
        
        launcherBlock = new BlockLauncherBlock(launcherID,Material.glass)
        .setUnlocalizedName("launcherBlock")
        .setHardness(3F)
        .setTextureName("hexaguin_advancedkinetics:launcherBlock");
        GameRegistry.registerBlock(launcherBlock, modid + launcherBlock.getUnlocalizedName().substring(5));
        LanguageRegistry.addName(launcherBlock, "Kinetic Vertical Velocity Enhancer");
        MinecraftForge.setBlockHarvestLevel(launcherBlock, "pickaxe", 1);
        
        heartSandBlock = new HeartSandBlock(heartSandID,Material.sand)
        .setUnlocalizedName("heartSandBlock");
        GameRegistry.registerBlock(heartSandBlock, modid + heartSandBlock.getUnlocalizedName().substring(5));
        LanguageRegistry.addName(heartSandBlock, "Heartsand [WIP]");
        
        gravityInverterBlock = new GravityInverterBlock(gravityInverterID,Material.iron)
        .setHardness(1.5F)
        .setTextureName("hexaguin_advancedkinetics:gravityInverterBlock")
        .setUnlocalizedName("gravityInverterBlock");
        GameRegistry.registerBlock(gravityInverterBlock, modid + gravityInverterBlock.getUnlocalizedName().substring(5));
        LanguageRegistry.addName(gravityInverterBlock, "Kinetic Gravity Inverter");
        MinecraftForge.setBlockHarvestLevel(gravityInverterBlock, "pickaxe", 1);
        
        gravityWellBlock = new GravityWellBlock(gravityWellID,Material.iron)
        .setHardness(1.5F)
        .setTextureName("hexaguin_advancedkinetics:gravityWellBlock")
        .setUnlocalizedName("gravityWellBlock");
        GameRegistry.registerBlock(gravityWellBlock, modid + gravityWellBlock.getUnlocalizedName().substring(5));
        LanguageRegistry.addName(gravityWellBlock, "Kinetic Gravity Well");
        MinecraftForge.setBlockHarvestLevel(gravityWellBlock, "pickaxe", 1);
        
        directionalLauncherBlock = new DirectionalLauncherBlock(directionalLauncherID,Material.glass)
        .setUnlocalizedName("directionalLauncherBlock")
        .setHardness(3F);
        GameRegistry.registerBlock(directionalLauncherBlock, ItemDirectionalLauncherBlock.class, modid + (directionalLauncherBlock.getUnlocalizedName().substring(5)));
        LanguageRegistry.addName(new ItemStack(directionalLauncherBlock,1, 0), "Kinetic Northbound Velocity Enhancer");
        LanguageRegistry.addName(new ItemStack(directionalLauncherBlock,1, 1), "Kinetic Eastbound Velocity Enhancer");
        LanguageRegistry.addName(new ItemStack(directionalLauncherBlock,1, 2), "Kinetic Southbound Velocity Enhancer");
        LanguageRegistry.addName(new ItemStack(directionalLauncherBlock,1, 3), "Kinetic Westbound Velocity Enhancer");
        MinecraftForge.setBlockHarvestLevel(directionalLauncherBlock, "pickaxe", 1);
        
        pearlActivatorBlock = new pearlActivatorBlock(pearlActivatorID,Material.iron)
        .setHardness(1.5F)
        .setTextureName("hexaguin_advancedkinetics:pearlActivatorBlock")
        .setUnlocalizedName("pearlActivatorBlock");
        GameRegistry.registerBlock(pearlActivatorBlock, modid + pearlActivatorBlock.getUnlocalizedName().substring(5));
        LanguageRegistry.addName(pearlActivatorBlock, "Rugged Pearl Activator");
        MinecraftForge.setBlockHarvestLevel(pearlActivatorBlock, "pickaxe", 1);
        
        //items
        itemRuggedPearl = new ItemRuggedPearl(ruggedPearlID)
        .setTextureName("hexaguin_advancedkinetics:ruggedPearl")
        .setUnlocalizedName("itemRuggedPearl");
        LanguageRegistry.addName(itemRuggedPearl, "Rugged Ender Pearl");
        
        
        //adding entities
        
        EntityRegistry.registerModEntity(EntityRuggedPearl.class, "Rugged Pearl", ++modEntityID, this, 64, 10, true);
        RenderingRegistry.registerEntityRenderingHandler(EntityRuggedPearl.class, new RenderSnowball(itemRuggedPearl));
       
        //adding Recipes
        ItemStack accelerator = new ItemStack(acceleratorBlock);
        ItemStack accelerator16 = new ItemStack(acceleratorBlock,16);
        ItemStack launcher = new ItemStack(launcherBlock);
        ItemStack northLauncher = new ItemStack(directionalLauncherBlock,1,0);
        ItemStack eastLauncher = new ItemStack(directionalLauncherBlock,1,1);
        ItemStack southLauncher = new ItemStack(directionalLauncherBlock,1,2);
        ItemStack westLauncher = new ItemStack(directionalLauncherBlock,1,3);
        ItemStack inverter = new ItemStack(gravityInverterBlock);
        ItemStack gravityWell = new ItemStack(gravityWellBlock);
        ItemStack quartz = new ItemStack(Item.netherQuartz);
        ItemStack redstone = new ItemStack(Item.redstone);
{'fraction_non_alphanumeric': 0.09246327955694679, 'fraction_numerical': 0.009751986515771732, 'mean_word_length': 5.10996689959544, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4547298', 'n_tokens_mistral': 5179, 'n_tokens_neox': 4804, 'n_words': 798}