<commit_before>package net.probossgamers.turtlemod.item;

import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.item.Item;
import net.minecraft.item.ItemArmor;
import net.minecraftforge.common.util.EnumHelper;
import net.probossgamers.turtlemod.ContentHandler;
import net.probossgamers.turtlemod.creativetab.ModTabs;

import java.lang.reflect.Field;

public class ModItems implements ContentHandler.IContentProvider
{
    public static Item turtleLeather;
    public static Item turtleHelmet;
    public static Item turtleChestplate;
    public static Item turtleLeggings;
    public static Item turtleBoots;
    public static Item turtleShell;

    public static ItemArmor.ArmorMaterial turtleArmor;

    public void init()
    {
        turtleArmor = EnumHelper.addArmorMaterial("Turtle", 5, new int[]{1, 3, 2, 1}, 15);

        turtleLeather = new Item().setUnlocalizedName("turtleLeather").setTextureName("turtlemod:turtleLeather");
        turtleHelmet = new ItemTurtleArmor(0, "turtleHelmet");
        turtleChestplate = new ItemTurtleArmor(1, "turtleChestplate");
        turtleLeggings = new ItemTurtleArmor(2, "turtleLeggings");
        turtleBoots = new ItemTurtleArmor(3, "turtleBoots");
        turtleShell = new ItemTurtleShell();

        setCreativeTabs();
        registerItems();
    }

    public void setCreativeTabs()
    {
        try
        {
            for (Field field : getClass().getDeclaredFields())
            {
                Object obj = field.get(null);
                if (obj != ModItems.turtleShell) {
                    if (obj instanceof Item) ModTabs.items.setCreativeTab((Item) obj);
                    else if (obj instanceof Item[]) ModTabs.items.setCreativeTab((Item[]) obj);
                }
            }
        }
        catch (Exception e)
        {<commit_msg>Forgot crafting recipes XD<commit_after>package net.probossgamers.turtlemod.item;

import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.item.Item;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.EnumHelper;
import net.probossgamers.turtlemod.ContentHandler;
import net.probossgamers.turtlemod.creativetab.ModTabs;

import java.lang.reflect.Field;

public class ModItems implements ContentHandler.IContentProvider
{
    public static Item turtleLeather;
    public static Item turtleHelmet;
    public static Item turtleChestplate;
    public static Item turtleLeggings;
    public static Item turtleBoots;
    public static Item turtleShell;

    public static ItemArmor.ArmorMaterial turtleArmor;

    public void init()
    {
        turtleArmor = EnumHelper.addArmorMaterial("Turtle", 5, new int[]{1, 3, 2, 1}, 15);

        turtleLeather = new Item().setUnlocalizedName("turtleLeather").setTextureName("turtlemod:turtleLeather");
        turtleHelmet = new ItemTurtleArmor(0, "turtleHelmet");
        turtleChestplate = new ItemTurtleArmor(1, "turtleChestplate");
        turtleLeggings = new ItemTurtleArmor(2, "turtleLeggings");
        turtleBoots = new ItemTurtleArmor(3, "turtleBoots");
        turtleShell = new ItemTurtleShell();

        GameRegistry.addRecipe(new ItemStack(turtleHelmet), "LSL", "L L", 'L', turtleLeather, 'S', turtleShell);
        GameRegistry.addRecipe(new ItemStack(turtleChestplate), "L L", "LSL", "LLL", 'L', turtleLeather, 'S', turtleShell);
        GameRegistry.addRecipe(new ItemStack(turtleLeggings), "LLL", "L L", "L L", 'L', turtleLeather);
        GameRegistry.addRecipe(new ItemStack(turtleBoots), "L L", "L L", 'L', turtleLeather);

        setCreativeTabs();
        registerItems();
    }

    public void setCreativeTabs()
    {
        try
        {
            for (Field field : getClass().getDeclaredFields())
            {
                Object obj = field.get(null);
                if (obj != ModItems.turtleShell) {
                    if (obj instanceof Item) ModTabs.items.setCreativeTab((Item) obj);
                    else if (obj instanceof Item[]) ModTabs.items.setCreativeTab((Item[]) obj);
                }
            }
        }
        catch (Exception e)
        {
{'fraction_non_alphanumeric': 0.10414657666345227, 'fraction_numerical': 0.005303760848601736, 'mean_word_length': 3.0836614173228347, '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': '5525576', 'n_tokens_mistral': 1383, 'n_tokens_neox': 1249, 'n_words': 271}