package net.minecraft.stats;

import net.minecraft.item.Item;
import net.minecraft.scoreboard.IScoreObjectiveCriteria;
import net.minecraft.util.IChatComponent;

public class StatCrafting extends StatBase
{
    private final Item field_150960_a;

    public StatCrafting(String p_i45910_1_, String p_i45910_2_, IChatComponent p_i45910_3_, Item p_i45910_4_)
    {
        super(p_i45910_1_ + p_i45910_2_, p_i45910_3_);
        this.field_150960_a = p_i45910_4_;
        int var5 = Item.getIdFromItem(p_i45910_4_);

        if (var5 != 0)
        {
            IScoreObjectiveCriteria.INSTANCES.put(p_i45910_1_ + var5, this.func_150952_k());
        }
    }

    public Item func_150959_a()
    {
        return this.field_150960_a;
    }
}
