public boolean equals(Object par1Obj)
    {
        if (!(par1Obj instanceof NBTBase))
        {
            return false;
        }

        NBTBase nbtbase = (NBTBase)par1Obj;

        if (getId() != nbtbase.getId())
        {
            return false;
        }

        if (name == null && nbtbase.name != null || name != null && nbtbase.name == null)
        {
            return false;
        }

        return name == null || name.equals(nbtbase.name);
    }